• Use {post_id} for the image source to pull the correct image.
• Use {post_title} for the alt text, which is often the title of the image file in WordPress.
Benefits of This Approach:
• No Need for Custom Functions: By keeping everything within Bricks, you avoid the need for additional custom PHP code in your theme’s functions.php file.
• Better Integration: This approach leverages WordPress’s native querying system, which is robust and well-integrated with the rest of WordPress and Bricks.
• Dynamic and Flexible: Easily adapts to changes in the gallery without needing to adjust custom code.