Support » Plugin: Pods - Custom Content Types and Fields » Loop though a post type taxonomy to find matching tags in a second post type

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter rm

    (@ricmann)

    Hi one and all

    It’s a week since I originally posted a question and I have been hard at work since then trying to properly tie down what I am trying to do in relation to the PODs documentation.

    I wonder if anyone has time to check through the following two outlines. Each one goes through what is already in place on the site and what I hope to achieve using PODS. Am I getting there 🙂 All advice will be very much appreciated!!

    OUTLINE ONE

    PRODUCT/RESOURCE is an existing post type on lightcolourvision.org

    PRODUCT/RESOURCE
    Each Product/resource page has a title such as:
    • Facts about sunlight
    • Features of electromagnetic waves
    Each Product/resource has user-defined Product tags eg.
    • Light source
    • Rainbow
    • Prism

    PODS
    Create a relationship between the PRODUCT/RESOURCE taxonomy Product tags and the GLOSSARY/REFERENCE taxonomy Unique tag (as per next column)

    AIM: INPUT/EDITING
    When editing a Product/resource page and selecting a Product tag, The Glossary/reference page with the matching Unique tag (and Title) is marked with that association.

    EXAMPLES
    A new Product/resource page called Facts about sunlight is tagged with an existing Product tag, Energy creating an association with the Glossary/reference page titled/Unique tagged Energy

    An existing Product/resource page called Facts about sunlight has three Product tags:
    • Energy
    • Electromagnetic radiation
    • Wavelength
    The three Product tags on this page are associated with three separate Glossary/reference pages with matching Unique tags and Titles.

    QUESTION
    What happens when a Product/resource page called Facts about sunlight is tagged with a brand new tag, Amplitude?

    AIM: MANAGEMENT

    Create a PODS Template and WP Page to check that the associated Glossary/reference fields and content can be targeted and populated on Product/resource pages.

    AIM: OUTPUT

    When a visitor views a Product/resource page called Facts about sunlight, a section on that page titled SOME KEY TERMS is populated with the title and content of all Glossary/reference pages with Unique tags matching the Product tags on this page.

    HOW? INPUT EDITING

    Use PODS to extend the Product/resource page post type.

    The existing taxonomy Product tags should be set as a relationship field that targets the Product/resource taxonomy Unique tag.

    The Product tag dialogue box already displays on all Edit Product/resource page posts.

    TASK AHEAD

    Extends my post type PRODUCT/RESOURCE so that the Product tag taxonomy can be targeted and related to GLOSSARY/REFERENCE taxonomy described below

    OUTLINE TWO

    GLOSSARY/REFERENCE is an existing post type on lightcolourvision.org

    GLOSSARY/REFERENCE
    Each Glossary/reference post type page has a title such as:
    • Absorption
    • Wave diagram
    Each Glossary/reference post type page has user-defined Reference tags for searching and ordering pages eg.
    • A-B-C-D-E
    • A
    Each Glossary/reference post type page also has user-defined Category:
    • Summary
    • Definition
    • Quote
    • Article
    For this exercise, each Glossary/reference page in the Summary category will need an additional Unique tag in a separate taxonomy that matches its title:
    • A reference page called Light source needs a Unique tag <Light source>.
    • A reference called Rainbow needs a Unique tag <Rainbow>
    No Unique tag will be added to pages in the Definition, Quote, Article categories because these are not to be targeted in this exercise.

    PODS
    Create a relationship between the GLOSSARY/REFERENCE taxonomy Unique tag and the PRODUCT/RESOURCE taxonomy Product tags (as per the previous column)

    AIM: INPUT/EDITING
    When editing Glossary/reference pages and adding Unique tags, all the Product/resource pages with a matching Product tag are updated with that association.

    EXAMPLE
    A new Glossary/reference page is created with a title and matching Unique tag Frequency. Any Product/resource page which already has a Frequency Product tag will now be associated with this page.

    AIM: MANAGEMENT

    Create a PODS Template and WP Page to check that the associated Product/resource fields and content can be targeted and populated on Glossary/reference pages.

    AIM: OUTPUT

    When a visitor views a Glossary/reference page titled and Unique tagged Energy, a section on that page titled RELATED RESOURCES is populated with the title, thumbnail and short description of a random selection of five associated Product/resource pages.

    HOW? INPUT EDITING

    Use PODS to extend the Glossary/reference post type with a custom taxonomy called Unique tag and add a tag to each post matching its title.

    The new taxonomy Unique tag should be a relationship field that targets the Product/resource taxonomy Product tag described in the previous column.

    Options need to be selected to display the Unique tag dialogue box on all Edit Glossary/reference post page.

    TASK AHEAD

    Create a new content type in the form of a Custom taxonomy for my GLOSSARY/REFERENCE:
    Name: References: Unique Tags
    Field: References Custom Taxonomy

    Very best wishes Ric 🙂

    Plugin Author Jim True

    (@jimtrue)

    I’m sorry but this is a job requirements proposal. This is not a support request.

    https://docs.pods.io/faqs/what-can-you-build-with-pods/

    Thread Starter rm

    (@ricmann)

    Thank you Jim

    Yes you are right. I contacted you too early in the process!
    I have made progress with preparatory work – custom taxonomies – and have moved on to working out how to relate two existing post types.
    Perhaps I can contact you again if I hit a brick wall.

    Very best wishes

    Ric

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Loop though a post type taxonomy to find matching tags in a second post type’ is closed to new replies.