V2 badges with links

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

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #480467

    Mike Stevens
    Full Member
    Post count: 17

    Hi – I’m trying to add a badge to the details template page of a custom post in V2. Everything works fine except I can’t get it to link to the right fields. See this badge:

    https://insightplatforms.com/platforms/incling/

    I can only get it to link to the post URL, but I want it to link to the website of the listing itself. How do I make that happen? And also, how do I get it to show up in the sidebar widget as well? Many thanks

    #480489

    Alex Rollin
    Moderator
    Post count: 27815

    We have a couple of examples here:
    https://wpgeodirectory.com/docs-v2/faq/common-examples/#gd_post_badge

    What is the issue exactly? Can you post your badge code here?

    #480500

    Mike Stevens
    Full Member
    Post count: 17

    Hi – sorry for the delay – I was just using the UI in the GD Details page template.

    #480502

    Kor
    Moderator
    Post count: 16516

    Hi Mike Stevens,

    Thanks for your reply. Do you still need assistance for this?

    Thanks

    #480503

    Mike Stevens
    Full Member
    Post count: 17

    Yes, I do – any help gratefully appreciated. Thanks.

    #480507

    Guust
    Moderator
    Post count: 29970

    I don’t think you want a badge …
    Try this shortcode:
    [gd_post_meta key=”website” css_class=”siteclass”]
    Then create some CSS styling for .siteclass

    Thanks

    #480508

    Mike Stevens
    Full Member
    Post count: 17

    OK thanks – is someone from GD still editing that template page in my site?

    #480511

    Guust
    Moderator
    Post count: 29970

    Oops, yes, forgot to close the window… sorry 🙁

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

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

Open Support Ticket