Hmmmm you are right.
On my levels page I just have a container and a shortcode element in Bricks.
The page shows as Edit with Bricks.
I do not have Load/Save Gturd data settings enabled in Bricks.
It works.
However when I look at it in Gturd then I also see the shortcode.
I’m certain that I created all the PMP stuff in Bricks. But now creating a new page to test - it no longer works. I’m on 1.8.4
So not sure whats going on, but rather worried as just committed to build a new site based on PMP.
As far as I know, those shortcodes like [pmpro_checkout] [pmpro_levels} etc are telling the plugin which page or which URL should be redirected to if certain actions perform.
You also need to indicate it in the plugin’s setting page
These don’t seem to work either.
Checking all my pages and they all seem to echo the bricks content to the Gutenberg page, so maybe I enabled the data exchange at some point.
I’m spooling up a new site to test all this and have something to share if needed.
In PMP there seem to be two types of shortcode.
General page type codes that display a whole page, such as [pmpro_levels] which displays a page showing all the PMP levels you’ve set up. This only works on a gutenberg page. It does not work in Bricks using the Shortcode element.
Shortcodes to display various fields. e.g. [pmpro_member field=“last_name”]
The latter work in Bricks but only if you use the shortcode element. You can’t simply drop the code into say a Richtext or Basictext elements, just does nothing.
@itchycode So what would be needed to get the Bricks elements to display the PMP shortcodes so they can be used inline? Does PMP need to create an integration to make the output from their shortcodes available as dynamic Bricks data?
BTW @brijesh24 I’ve spoken with the PMP support. They don’t consider Bricks to be mainstream, yet, so don’t include it in their integrations ( they have Elementor, Divi and otrhers ) Maybe submit a ticket to them mentioning Bricks to try and raise awareness.
@itchycode Thank you for the reply. I will take a look and make it work like you mentioned.
@alanj Thank you for the looking into this in detail and posting here. It will help others like us. I’ve already created a support ticket with PMP and they are looking into my site with an admin login. I will update here when I hear back. And yes they did mention about not supporting bricks anytime soon similar to the other page builders.
In Bricks, we use dynamic tags for inline text which is much more flexible and supports in different elements.
I am not very sure the plugin stored the membership level fields in which location, so it’s quite hard for me to give you an accurate answer.
If it’s stored in user_meta, and you wish to display those user meta field for logged in user, you can use {wp_user_meta:my_user_meta_key}, example {wp_user_meta:bfirstname}
Yes they save some info in wp_users ( basic WP user registration stuff - I can get these as they are already listed in the dynamic field drop downs under User.) and some info in wp_usermeta.
I’ve tried using a variety of formats in the richtext/basic text elements to retrieve the usermeta fields.
In the database there is an entry in wp_usermeta with a meta_key of “pmpro_bfirstname” but using {wp_usermeta:pmpro_bfirstname} fails to retrieve its value. Also tried {wp_user_meta:pmpro_bfirstname} and {wp_user_meta:bfirstname} with no joy.
How should a plugin developer go about integrating their product? Is there a guide or any documentation? I know ACPT did it not so long ago and that works very well now.
That’s interesting, {wp_user_meta:} should work.
Is it possible to provide me a temp admin access so I can check that?
Please email help@bricksbuilder.io and include this thread URL as a reference.
Hi Jenn,
Thanks. I’ve now built a public site to test this all on.
I’ll send you an email with access details.
I have spoken with the PMP team and they gave me a Snippet to register their page shortcodes. Tested this and it works ( see the Levels page on my site )
However I’m still stuck on how to display the other PMP specific fields. ie their Membership fields and Payment fields. Anything in users table is fine.
So if the PMP team wanted to better integrate with Bricks should they just use the Create your own Dynamic Tag article ( Create Your Own Dynamic Data Tag – Bricks Academy ) to make all their variables/fields available in Bricks drop downs under their own heading?
Also register their Page type Shortcodes so they can be used inside Bricks pages.
Many thanks again. Really appreciate your help.
Cheers
Alan