related listings

This topic contains 3 replies, has 3 voices, and was last updated by  Paolo 9 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #32464

    idleme.com
    Expired Member
    Post count: 124

    Hi is there any way of hiding related listing on paid subscriptions, i can only seem to turn it off and on at the moment and can’t figure out how to turn it on for free listings and off for paid

    Darren

    #32476

    Simone
    Expired Member
    Post count: 3515

    Hello Darren, I know it’s not a solution but if you will use the related listing widget you can do as follow:

    – Install Widget Logic plugin (here https://wordpress.org/plugins/widget-logic/)

    – Once installed, you will find a new field at the bottom of each widget, use the GD related listing widget and insert in the widget logic field the following code:

    
    
    global $post, $wp_query, $geodirectory;
    return $post->package_id=="1"; 

    note the number 1, it is the ID for the package you want to show, for example as default, the 1 is for the FREE package. You can find the package id in the Prices page, under the Geodirectory settings

    #32564

    idleme.com
    Expired Member
    Post count: 124

    Hi i have just tried this. it doesn’t display the widget at all on my site so i think i might have an issue with the related listings widget.

    #32574

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    here I explain how to hide tabs programatically per different price or CPT:

    https://wpgeodirectory.com/support/topic/moving-places-between-different-cpts/#post-26110

    Let us know if you want us to have a look at your related listings widget. We would need a url and wp admin credentials.

    Thx

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount