Skip to content

Query Loop Variations for Related Content Display #431

@ZaredRogers

Description

@ZaredRogers

Description:

Implement various query loop variations for dynamically displaying related content based on specific criteria across different content types (Tours, Accommodation, Destinations, and Reviews).

Requirements:

Tours
  1. Related Tours:

    • Displays tours that go through the same regions or countries as the current tour.
  2. Related Posts:

    • Displays posts specified in the "Related Posts" custom field.
  3. Related Accommodation:

    • Displays accommodations specified in the "Related Accommodation" custom field.
Accommodation
  1. Related Accommodation:

    • Displays accommodations within the same region or country as the current accommodation.
  2. Related Tours:

    • Displays tours selected in the "Related Tours" custom field.
  3. Related Posts:

    • Displays posts selected in the "Related Posts" custom field.
Destinations
  1. Related Destinations:
  • Displays destinations located within the same country as the current destination.
  1. Related Tours:

    • Displays tours selected in the "Related Tours" custom field.
  2. Related Posts:

    • Displays posts selected in the "Related Posts" custom field.
  3. Related Accommodation:

    • Displays accommodations selected in the "Related Accommodation" custom field.
Reviews
  • Related Reviews:
    • Displays only reviews listed in the "Reviews" custom field.

Acceptance Criteria:

  • Query loops are correctly implemented for each of the specified relationships.
  • The correct related content appears based on region, country, or custom field references as described.
  • Each query loop variation is styled in line with the design specifications.

Metadata

Metadata

Labels

status:needs-devEarly execution signal (triage queue for engineering)

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions