• Resolved Adri Oosterwijk

    (@adri-oosterwijk)


    Hi Jim,

    What a relieve that a plugin lik Pods exists. I whish I had discovered a long time ago. It would have save me a lot of troubles and time.

    Ok… long story short, I found it and I am extremely happy with it. Keep up the great work.

    Got a question and if anyone can answer it… yeah, it’s you.
    I’ve created a cpt and a custom taxonomy. Works well. To show the archive pages I use my custom archive-recept.php template. I slightly adjusted it to display the Pods fields. Works great. On the different recept pages I want to show a widget with the categories. (like the wordpress categories widget).

    I could not getting it to work properly. Using the Pods list item it shows me the the custom fields from the respective posts.
    Using a dedicated plugin to show the contents of a custom taxonomy (List Custom Taxonomy Widget) and select the taxonomy of my choice (receptcategorie) it is displayed nicely. The culprit however is the fact that clicking on one of the items is displaying the archive using archive.php instead of archive.php. So, I’m loosing the markup (and therefor the css) I’m using in arhcive-recept.php.

    Please advice me how to incorporate a taxonomy (receptcategorie) widget showing the correct results using the custom archive-recept.php for showing results after clicking.

    Best wishes,

    Adri

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jim True

    (@jimtrue)

    archive-<post-type>.php is only for the actual archive of the post type. Taxonomies use archive.php by default if there isn’t a taxonomy.php (see the https://wphierarchy.com/ as a resource). This actually doesn’t have anything to do with Pods not work, it’s just how taxonomies work in WordPress. So if you want to apply the same styling from archive-recept.php to your receptcategorie, you’d need to have a taxonomy-receptcategorie.php

    Thread Starter Adri Oosterwijk

    (@adri-oosterwijk)

    And yet again the winning answer from Jim.
    Thanks you, I’m learning a lot these days 🙂

    Plugin Author Jim True

    (@jimtrue)

    You’re welcome 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clicking a taxonomy entry in a widget uses wrong template’ is closed to new replies.