SOLVED: Shortcode confusion

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.

Thanks
Alan

Hello Alan,

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)?

Thank you
Luis

Hi Luis,
I agree, hence my confusion.

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.

Happy to let you have access if you like.

Cheers
Alan

Hello Alan,

Is it possible for you to send us one email (help@bricksbuilder.io) with temporary login credentials so we could check the issue ourselves?

Thank you

1 Like

Sent. Site is a test one so do your worst.
Cheers
Alan

I am glad that you have solved it, I dont understand why the solution is not posted here. I am here one year later with the same issue.

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?