Multiple gd_listings on same page

This topic contains 5 replies, has 2 voices, and was last updated by  Simon 4 years, 2 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #532014

    Simon
    Full Member
    Post count: 35

    Hi,I Trying to display mulitple gd_listings on same page. We are trying to get featured listings in one and lsiting events in the other on the home page.

    [gd_listings post_type=”gd_place” post_limit=”4″ add_location_filter=”1″ sort_by=”random” title_tag=”h3″ layout=”4″ bottom_pagination=”1″ category=”0″]

    [gd_listings post_type=”gd_event” related_to=”category” post_limit=”3″ show_featured_only=”1″ sort_by=”random” title_tag=”h3″ layout=”3″ category=”0″]

    Both shortcodes work fine when on the page by themselves, but if you put them both on, the second shortcode renders wrong information.

    Is there something else we should add, or is this not actually possible? Ideally we will have three on the same page.

    Thanks

    #532022

    Alex Rollin
    Moderator
    Post count: 27815

    On the front page, the related_to=”category” cannot be used, so, try removing that.

    You can absolutely use 2 on a page.

    If there is still an issue please share WP Admin credentials so we can take a look at the issue.

    #532102

    Simon
    Full Member
    Post count: 35

    That did it! Dont know how that got in there.I must have hit it when using the shortcode builder. Thanks!

    #532104

    Simon
    Full Member
    Post count: 35

    Last quick one, is there a way to call a different layout (template) for different gd_listing type. For instance, I would like a different layout for events. Where all we want to show is image, name, date, location. I can change the template in child theme & duplicate it. But cannot see a way to differentiate which one is used.

    I have searched through forums and fairly sure the answer is you can’t. But thought I would ask in case I am missing something. Currently my thoughts are to add everything I need for each layout into the one file then just manipulate/hide with css.

    Thanks

    #532133

    Alex Rollin
    Moderator
    Post count: 27815

    In the CPT General settings tab click show advanced. At the bottom you can choose a different GD Archive and Archive Item template for each CPT

    #532144

    Simon
    Full Member
    Post count: 35

    Excellent! Thanks! This is our first look at the V2. All others in the V1 – just getting head around them before we upgrade. Thanks Alex!

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

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

Open Support Ticket