Custom Post Types:
Field for company CPT:
company_location (Type: Plain Text).
Field for job CPT:
related_company (Type: Relationship)
Objective: On the job CPT's singular pages, show the related company data like the title, the location custom field's value and the content.
Create and edit "Single Job" template with Bricks.
Set a template condition to ensure that it applies to singular items of the job post type.
Add a Section having the Post Title and Post Content elements.
Add another Section having a "Related Company" heading.
Below the heading, add a Posts element or a Query Loop to output posts of the company post type.
Add Post Title, Basic Text and Post Content elements (query loop was used in our test site).
Change the Basic Text element's text to:
This is a BricksLabs Pro tutorial.
For full access login below or create your BricksLabs Pro account