Different sidebar on Add Listing page and Add Events pages

This topic contains 2 replies, has 2 voices, and was last updated by  m forbes 8 years, 8 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #51260

    m forbes
    Full Member
    Post count: 338

    Hi Again,

    Based on this thread: https://wpgeodirectory.com/support/topic/the-add-listing-pageformatting-sidebars-on-add-listing-page/#post-50866 ,which is marked resolved…

    Paolo, I tried everything I could to wrap my little ol’ brain around. I can not seem to get it correct. I installed widget logic, conditional widgets, looked for examples, searched, and I just can not seem to get a different sidebar to show on Add Events page.

    I can register and create a “standard” sidebar, just not sure how to do so using the ?listing_type=gd_event.

    I understand that this is customization, and if this is more then I should ask here, then I will move it to jobs. It seems like someone else might want a different sidebar depending on if the page is the Add a Listing or Add an Event. I may be wrong :).

    Please let me know if I am pushing the limit :), Thanks!

    #51279

    Guust
    Moderator
    Post count: 29970

    I know this works:

    Get https://wordpress.org/plugins/widget-logic/

    Add your widget to the Add Listing Sidebar.

    Then as “widget logic” for the widget you only want to show on the Add Events page, use

    geodir_get_current_posttype()=='gd_event'

    That will display that widget only for the Add Events page.

    #51342

    m forbes
    Full Member
    Post count: 338

    Oh, thanks, very cool!

    And for anyone else who may read this, you will just need to add geodir_get_current_posttype()==’gd_event’ in the widget that you just want to show on the Add Listing page.

    Thanks again!!!

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

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

Open Support Ticket