• Resolved Refine Graphics

    (@refine-graphics)


    Hi there, I’m pretty new to working with Pods, but am very excited about the possibilities! However, I’ve run into a problem that has me completely at a loss…

    I’m have a CPT called Case Studies. I created another related CPT called Services, which I’ve connected to Case Studies as a bidirectional relationship, as I would like each case study should show related services. The relationship field is called related_services

    Here’s the shortcode I’m using to display the Related Services at the bottom of each Case Study:

    [pods name=”case_study” template=”Services Used”]

    The template Services Used is as follows:

    [if related_services]
    <h2>Services Used:</h2>
    [each related_services]
    <div style=”width: 220px; display: inline-block;”>
    <div style=”width: 100px; margin: 5px auto;”>{@post_thumbnail}</div>
    <p style=”text-align: center;”>{@post_title}</p>
    </div>
    [/each]
    [/if]

    It’s displaying two h2 headings with one correct related_services, and another incorrect related_services

    Example here: https://abvsquared.refinegraphics.ca/case-study/multi-location-province-retail-with-transportation-construction-hardware/

    This case study is supposed to show the two related services: HR and Health and Safety.

    I can’t for the life of me figure out why it’s duplicating the template and showing it again, with the Health and Safety related service ??

    Have I just done something dumb with my template that I can’t see? Please help!

    Wordpress 5.6
    All themes and plugins up to date

    Thanks in advance ??

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

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pods template showing duplicated + incorrect content??’ is closed to new replies.