In a recent website I worked on, a requirement was to get the URL of the featured image of a project (CPT) that is related to a review (CPT) via a "Post" type of Meta Box custom field for use on single review Bricks template.
Review CPT field group:
This can be done by registering a custom function and using it with a dynamic data condition as well as the source of an Image element.
We'll also include the code snippets for getting the associated project's name and permalink URL.
Sridhar Katakam is a Bricks enthusiast. He likes helping others by researching and solving WordPress-related problems and building websites.
Get access to all 633 Bricks code tutorials with BricksLabs Pro
Related Tutorials..
Pro
Post Specific Footers in Bricks using Meta Box
This Pro tutorial provides the steps to output post-specific footer using Meta Box' Post type of field when using Bricks. Sample screenshots below. Course CPT…