• Resolved ggv2024

    (@ggv2024)


    I have a list of products and add a field that has a ratio with the same list of products, that field will be to choose those that are similar. I show that list of similar products in the list but when I add to another page, those of the previous page is also shown.

    I would like to know how I can tell you to only show the products chosen in this field referring to this page and not all

    [each related_similar_product]
    <div class="card similar-product">
      <img src="{@related_similar_product.product_image._src}" alt="{@related_similar_product.product_title}" />
      <div class="card-body">
        <h5 class="card-title">{@related_similar_product.product_title}</h5>
        <p class="card-text">{@related_similar_product.product_subtitle}</p>
        <a href="/products/{@related_similar_product.slug}/">View</a>
      </div>
    </div>
    [/each]

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @ggv2024

    Your test link does not work.
    I will need some more info about your exact configuration.
    Assuming related_similar_product is a relationship field to the products post type then this should be unique for each singular object.

    Cheers, Jory

    Plugin Author Jory Hogeveen

    (@keraweb)

    Closing topic due to no reply, feel free to reopen if you still need help!

    Cheers, Jory

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show field info on Pods’ is closed to new replies.