Link to listing detail

This topic contains 9 replies, has 4 voices, and was last updated by  Alex Rollin 4 years, 10 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #494737

    sagraphics
    Free User
    Post count: 36

    In the archive page, I would like each listing to feature a button that links to the listing details page. At the moment, only the title links. How can we do this?

    #494745

    Kor
    Moderator
    Post count: 16516

    Hi sagraphics,

    Thanks for your post. The image and title should link to the details listing page. Not just title and could you check?

    #494761

    sagraphics
    Free User
    Post count: 36

    Yes, but it’s not clear that you should click on it. I’m using it as a directory of tutors, and the details page needs to feature a gallery, so I have used the logo upload for the profile picture, as I don’t want the profile picture in the gallery.

    #494784

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    You can use a GD Post Badge element to create a link to %%post_url%% then add Custom CSS to make it a button.

    GD Post Badge examples -> https://wpgeodirectory.com/docs-v2/geodirectory/featured-listings/
    https://wpgeodirectory.com/docs-v2/faq/common-examples/#gd_post_badge

    You can also use the GD Post Content element to do that. Set it for 0 words display and set the link text as you like.

    Edit the archive item template to add that
    https://wpgeodirectory.com/docs-v2/templates/archive-item/

    #494904

    sagraphics
    Free User
    Post count: 36

    I’ve tried using [gd_post_content key=”post_content” read_more=”VIEW PROFILE”] but it’s not showing the read more link?

    #495025

    Alex Rollin
    Moderator
    Post count: 27815

    You’re right, it seems to require 1 word at least before it will display.

    Also, there doesn’t seem to be a way to use GD Post Badge to accomplish this like:

    
    
    
    [gd_post_badge key="post_category" condition="is_not_empty" badge="View all the details" bg_color="#ffffff" txt_color="#ff0080" alignment="right" css_class="my-read-more-link"]
    

    I will flag your topic for the developers to let us know how to make a simple read more link that links to the listing.

    #495072

    Kiran
    Moderator
    Post count: 7069

    Hello sagraphics,

    Add two more parameters limit & max_height to display read more link.

    Ex:

    [gd_post_content key='post_content' read_more='VIEW PROFILE' limit='60' max_height='120']

    Kiran

    #495120

    Alex Rollin
    Moderator
    Post count: 27815

    For a badge, try this one:

    
    
    
    [gd_post_badge key="post_title" condition="is_not_empty" badge="Read More" link="%%post_url%%" bg_color="#ffffff" txt_color="#433aed" alignment="right"]
    
    #495131

    sagraphics
    Free User
    Post count: 36

    THANK YOU!! Resolved with [gd_post_badge key=”post_title” condition=”is_not_empty” badge=”VIEW PROFILE” link=”%%post_url%%”]

    #495329

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
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