Support » Plugin: Pods - Custom Content Types and Fields » The extra content of Pods display at all categories instead of one

  • Resolved whateverfree2


    I used Pods to extend the category description so each category will has an extra WYSIWYG and I will add the content there and make it display at bottom of each category.

    The problem is I am using Genesis framework with Simple Hooks plugin – where I added the code for the output of Pods.

    All extra content of categories ALWAYS display at ALL categories page. This is not correct, the correct way is extra content of category A only display at bottom of category A and so on.

    Here is the code for Pods output

    <div class="entry"><?php if (is_category()) {
    echo  do_shortcode('[pods name="category"]{@extra_content_for_category}[/pods]');

    Category 1:
    Category 2:

    You will see sample content at the bottom of two category

    Could you please help me correct the code above? I known this is not Pods problem but I guest Jim or other contributor will have experience on this.

    Thanks for your help!

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


    If you want this to show for the current category, you’d need to provide a term_id for the current category to limit it with a where clause or call it within the loop portion of your page so it’s aware of the current category and will only show it for that category.

    Plugin Author Jim True


    @whateverfree2 I’m going to assume my suggestion worked for you and go ahead and close this one. If you’re still having an issue, please feel free to reply to this ticket. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘The extra content of Pods display at all categories instead of one’ is closed to new replies.