Using Bricks 1.4beta. Brave Browser. Linux Mint 20.3
Hi, Can anyone clarify for me how shortcodes work?
Specifically. I have a plugin that creates shortcodes for forms it produces. ( PaidMembershipPro ).
I have 2 shortcodes [pmpro_login] and [pmpro_levels] that I want to style and add extras to.
Bricks settings are NOT enabled for gutenberg or bricks data.
If I create a bricks page and drop a shorcode element on it and add one of my shortcodes I am getting different results.
If I add the [pmpro_login] shortcode then it works and the Bricks page displays the PMP form.
But if I add the [pmpro_levels] shortcode then Bricks simply displays the shortcode text and not the form. This is both in backend, preview and frontend.
If I enable the Bricks settings for gutenberg and Bricks data then both shortcodes work.
Why is this? I’d expect either both to work or neither.
I don’t think the Bricks settings related to convert Bricks data into Gutenberg or loading Gutenberg data into the Bricks builder will affect the way shortcodes from third-party plugins render.
Both shortcodes should be displayed, at least in the frontend. If one of them shows the shortcode itself is because when Bricks tried to convert it, the shortcode was not yet registered.
Is it possible for you to test the shortcodes in the Gutenberg editor and see if they work correctly rendering the page using WordPress (and not Bricks)?
Yes if I add the shortcodes to the pages in Gutenberg then they both work.
If I add them in Bricks and then enable the bricks/Gutenberg data ( both boxes ticked ) then again both work - as the shortcode entered in Bricks now appears in Gutenberg.
But if only added in Bricks then the login shortcode still works but the levels shortcode doesn’t.
If you look at https://pmptest.alanj.me.uk/ I have created a Login1 and Levels1 pages on the menu. These have the shortcodes added in Bricks.
Also on the menu is “Membership Levels” which is a Gutenberg page and works fine. Also there should be a “login” page also Gutenberg only. ( It toggles between Login and Logout as appropriate )
There are many more shortcodes provided by PMP but I’ve only played with these two so far.
yeah, i’m absolutely lost… I’ve ran nearly through nearly all the solutions i can think of to implement a form via a shortcode within bricks builder while using brick’s native button element and nothing works… tried custom css, interactions, functions.php, custom script via page settings…
Crazy that absolutely nothing works… What am i doing wrong?