widget logic for upcoming event

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 6 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #467062

    Carin Handsun
    Expired Member
    Post count: 178

    Hi, I would really appreciate your help in constructing a conditional statement for Widget Logic to show a widget on my Upcoming Event page, ?geodir_search=1&stype=gd_event&etype=upcoming
    would something like this be correct?

    geodir_get_current_posttype()==’gd_event’ && ‘type=upcoming’

    #467075

    Alex Rollin
    Moderator
    Post count: 27815

    Your best bet may be to try WP conditional tags.

    https://codex.wordpress.org/Conditional_Tags

    For example for the search page

    We are unable to provide additional snippet support for widget logic at this time as we are focused on GDV2 development.

    #467208

    Carin Handsun
    Expired Member
    Post count: 178

    here it is if anyone is looking:
    geodir_get_current_posttype()==”gd_event” && is_search(“etype=upcoming”)

    #467299

    Alex Rollin
    Moderator
    Post count: 27815

    Thanks for sharing! 🙂

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