• Resolved fabik84

    (@fabik84)


    Hi there!

    I’m still fairly new to pods and wordpress. So it’s possible that I’m overlooking something easy or basic.

    Could someone please tell me how I can make the individual elements of a custom taxonomy clickable like the wordpress “Tags” are functioning? E. G. I add a new taxonomy like “foreign languages” with “Spanish” “Turkish” and other languages. I now would like to link every single language to a correspondent Archive Page. Following my example if the user clicks on “Spanish” he/she would land on the “Spanish archive page” with all entries that are tagged as such.

    I suppose this is a frequent topic but I couldn’t find anything in the forum which solved this for me. Any help would be greatly appreciated.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter fabik84

    (@fabik84)

    I found a Finnish site that was able to achieve what I would like to do. This may help to clarify my request. If you visit this site https://laajakuva.com/ticks-1993/ and look up the info displayed under the movie poster or the infos at the end of the article with its black background: Those items are all clickable and lead to individual archive pages. I hope this is not too hard to do. I found this page through an older topic on this forum.

    Plugin Support Paul Clark

    (@pdclark)

    See get_term_link() for getting the taxonomy term link for use in an href="" attribute of a link in PHP, or within a Pods template, use {@permalink} within an [each taxonomy_field_name] ... [/each]:

    <ul>
    [each taxonomy-name]
        <li><a href="{@permalink,esc_url}">{@name}</a></li>
    [/each]
    </ul>

    [each] taxonomy example in the Pods docs.

    Thread Starter fabik84

    (@fabik84)

    Hi Paul, thank you for your help! I’m a little intimidated by this solution as I have no clue about PHP and haven’t touched the php file so far. Do you have a tip for where I can find a step by step explanation on how to do this?

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @fabik84

    The code Paul shared isn’t PHP but can be inserted in Pods Templates.

    See https://docs.pods.io/displaying-pods/pods-templates/

    Cheers, Jory

    Thread Starter fabik84

    (@fabik84)

    Hi Jory @keraweb ,

    Thank you for this clarification! My impression is that a pods template is a complete template that I can define in HTML/CSS. This unfortunately doesn’t help me as I’m using Elementor Pro to build my templates without having to code (which unfortunately I can’t). Is there any easy way to use Paul’s solution or some other solution which is compatible with Elementor Pro? Cheers, Fabian

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @fabik84

    My guess is that Elementor has a text/code module that supports shortcodes, if so you can try to add the Pods template in such a module by wrapping it in a Pods shortcode:

    [pods]
    <ul>
    [each taxonomy-name]
        <li><a href="{@permalink,esc_url}">{@name}</a></li>
    [/each]
    </ul>
    [/pods]

    Cheers, Jory

    Thread Starter fabik84

    (@fabik84)

    Thanks @keraweb for the clarification. Hmmm… I’m kinda surprised that there is no out of the box solution for this. This would be a nice feature. Maybe something for the future. Right now I think I have to look for other solutions.

    Plugin Support Paul Clark

    (@pdclark)

    The out of box solution is the Elementor shortcode or text module. Putting in the full snippet Jory provided will give you the result you’re asking for.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @fabik84

    Unfortunately, the integration Elementor created for Pods is incomplete. We get a lot of users wanting to do stuff with these plugins combined but can’t because it results in bugs.
    Since Elementor Pro is not open source there isn’t much we can do. You should go to their support to ask for integrations for Pods fields in their modules.

    Cheers, Jory

    Thread Starter fabik84

    (@fabik84)

    Thanks for the explanation Jory, @keraweb . I already got in contact with elementor support. They are going to look into this and asked for patience.

    Cheers,

    Fabian

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to make custom taxonomies clickable?’ is closed to new replies.