Support » Plugin: Pods - Custom Content Types and Fields » Relate Posts Showing with Content

  • Resolved ljrain

    (@ljrain)



    I am noticing that when I show the @post_content I am also seeing related posts in the same DIV that I am created for the content. I have the auto template set to replace content.

    Any idea what I am doing wrong?

    <div style=’border: 2px solid #ccc; background-color: #eee; border-radius: 5px; padding: 16px; margin: 16px 0;’><h3>{@post_title} {@age}</h3>
    <table width=’90%’ height’800px’>
    <tr>
    <td style=’font-weight: bold;’ colspan=’2′>{@birth_date} – {@angel_date}</td>
    </tr>
    <td width=’30%’ valign=’top’>{@full_name}</td>
    <td width=’70%’ style=’font: 22px Bradley Hand, cursive;’>{@post_content}</td>
    </tr>
    </table>
    </div>

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

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

    (@jimtrue)

    I would personally not replace content if you’re planning on using post_content from another related field in the same template with Auto Templates.

    Replace takes every iteration of the_content and replaces it with the output from your Pods Template. Using replace makes them step on each other if you’re outputting them in two places in the template.

    Remember: Pods Templates are not designed to completely replace PHP Theme Templates. They are designed to enhance what your theme already handles.

    Are you doing the Related Posts with Pods Templates or are you using another plugin that does Related Posts? Because all plugins use the_content to push their content into your post. That might be why the related posts are dropping into your div instead of outside of it. Don’t use Replace.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.