Similar Posts
Setting element condition in Bricks Builder based on ACF repeater sub field value
Step 1 Add the following function in theme’s functions.php file. The function accepts two arguments: $field (repeater field name) and $sub_field (repeater field’s sub field). It checks if the sub field is empty or not and returns true (1) or false (0) accordingly. Step 2 Add the following condition in Bricks Builder element: Condition: Dynamic…
Create site url shortcode in WordPress
Add the following code to your theme’s functions.php file: Now you can use the shortcode [site_url] anywhere in your wordpress site.
Bricks Builder query loop filter to show CPT posts from logged in users
Both the following codes work. Add the snippet in theme’s function.php file. Reference: