Related Listings

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

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

Open Support Ticket
  • Author
    Posts
  • #493836

    marktowers
    Buyer
    Post count: 171

    According to the V2 documentation, it should be possible to add a related listings tab to replicate the feature on V1. As I understand it, this would be done by going to the settings for a CPT, going to Tabs and then presumably there would be a predefined field for related listings.

    I don’t have a related listings field so is something wrong with my implementation, or have I misunderstood?

    #493850

    Kor
    Moderator
    Post count: 16516

    Hi marktowers,

    Thanks for your post. The attached is how it can be added and here is the listing shortcode for your related listings.

    [gd_listings post_type="gd_place" related_to="category" sort_by="az" title_tag="h3" layout="gridview_onethird" post_limit="6" view_all_link="1"]
    #493965

    marktowers
    Buyer
    Post count: 171
    This reply has been marked as private.
    #494055

    Kor
    Moderator
    Post count: 16516
    This reply has been marked as private.
    #494247

    marktowers
    Buyer
    Post count: 171
    This reply has been marked as private.
    #494541

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    please describe what you are trying to do so we can help.

    #495010

    marktowers
    Buyer
    Post count: 171

    In V1 all listings have a related listings tab, however, I noticed this was not present on V2. So, I’m trying to add a tab for related listings on my listings.
    It seemed that this could be done on the CPT’s settings on the Tab UI, however, it isn’t clear from the Geodirectory documentation whether there should be a pre-defined custom field for related listings or whether one would need adding. Kor created custom fields for related listings on one of my CPTs and I added it as a tab, however, this not worked.
    I’m probably missing something simple but I appreciate your help fixing this.

    #495042

    Alex Rollin
    Moderator
    Post count: 27815

    Hi,

    Please check this example out and see if it helps:
    https://wpgeodirectory.com/docs-v2/places/tabs/#related-listings

    #495180

    marktowers
    Buyer
    Post count: 171
    This reply has been marked as private.
    #495192

    Kor
    Moderator
    Post count: 16516

    Hi mark,

    Thanks for your reply. You can remove it using the custom CSS code below. Is this what you’re looking for?

    .single-gd_place .geodir-category-list-view .gd_place:first-child {display:none;}
    
    body.single-gd_place  ul.geodir-category-list-view.geodir-gridview.gridview_onefourth>li:nth-child(4n+1) {
        margin-left: 2.66%;
    }
Viewing 10 posts - 1 through 10 (of 10 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