Support

Account

Home Forums General Issues How to? Dynamic vendor list content and order Reply To: How to? Dynamic vendor list content and order

  • I don’t know how you select the vendor.

    I would have at least 2 post types for this and optionally 3. These might be custom post types

    • The post type used for the review
    • The post type used for the product (optional, used if there was specific product information I wanted to keep sepately)
    • T

    • he post type used for the vendor

    I would have a bidirectional relatioship field between the product and the vendor and I would have a bidirectional relationship field between the review and the product. If the product post type is not used then I’d have a relationship directly between the review and the vendor. The vendor post would have information on the vendor, active, inactive, display order, etc. When generating the content for the review I would query this relationship and alter the results based on whatever is stored for each vendor.

    This is boiled down, but it would basically give you the ability to do whatever you need to do.