Hide shortcode-tab if shortcode is empty?

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 5 years, 2 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #467908

    anders
    Full Member
    Post count: 121

    Hi,

    This is a follow up to this thread:
    https://wpgeodirectory.com/support/topic/new-tab-details-page/

    I have added ”Custom fields” > ”Shortcode” -tabs that contains gd_listings -shortcode with a ”current_author” -filter and hide_if_empty=”1″
    Preferably I would only like to display these tabs if the gd_listings shortcode contains anything to show.
    …if the shortcode doesn’t have anything to display the tab should not be visible

    Is it possible to use geodir_tab_settings for this? …any chance you could provide a basic example?

    Thanks!

    #467910

    Alex Rollin
    Moderator
    Post count: 27815

    That would require a customization, but I will flag your topic for the developers in case they can provide a quick example.

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket