I have a custom Bricks Query (bricks/query/run) that fetches data from an external API and stores it as a Custom Post Type (tariff). One of the stored Post Meta fields is link_url, which contains a valid URL.
Problem:
{cf_link_url} is correctly displayed in a Code Element.
{cf_link_url}does not work in Buttons or Basic Text elements → The href attribute remains empty (href="").
Example HTML output in the frontend:
Broken Button (href is empty):
<a class="brxe-button btn--primary bricks-button" href="">Sign up online</a>
Correct output in a Code Element:
<a class="brxe-button btn--primary bricks-button" href="https://login.stadtwerke-juelich.de/...">Sign up online</a>
Additional Information:
The URL is stored as Post Meta using:
update_post_meta($post_id, 'link_url', $url);
The correct URL is visible in the WP Admin interface under custom fields.
Bricks does not process {cf_link_url} correctly in Buttons & Text elements.
Bricks either does not modify the href or renders it as an empty string (href="").
Is this a known bug? Is there a way to make {cf_link_url} work correctly inside Bricks buttons?
Hi Thomas,
Thanks so much for your report, and welcome to the forum!
Unfortunately, I cannot reproduce the issue (probably a different setup). Please send temporary login credentials and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase.
This is the same issue on the thread starter but im using PODS plugin and i create a field for a button URL which the type: website and I used a dynamic data inside the button element in a single page template and the url did not render in the frontend, the button has a pointer in the frontend but dont have URL and theres no href, i tried basic text, links, and URL still not rendered in the frontend
The thread starter is not talking about pods, but about custom fields in general.
So please: create a new report and check beforehand whether the field contains data on the pages, as the dd tag always refers to the page on which it is displayed – unless it relates to an options/settings page.