Check if "is geodir page"

This topic contains 3 replies, has 2 voices, and was last updated by  Stiofan O’Connor 9 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #28658

    Robert Strobel
    Expired Member
    Post count: 54

    Hi,

    In our theme we use functions such as is_404() and is_search() to determine dynamic content in the header. We would like to do the same for pages that are generated by geodirectory.

    Do you have similar functions for us to use, like is_geodir_listing() or something?

    Thanks

    #28662

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Robert,

    You can use:

    geodir_is_geodir_page()

    or for a specific GD page:

    geodir_is_page($gdpage)

    where $gdpage is either:

    ‘add-listing’
    ‘preview’
    ‘listing-success’
    ‘detail’
    ‘listing’
    ‘location’
    ‘author’
    ‘search’

    Thanks,

    Stiofan

    #28663

    Robert Strobel
    Expired Member
    Post count: 54

    Many thanks!

    #28665

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Your welcome! 🙂

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