Hi there, thank you for reaching out to the Paid Memberships Pro team.
You can add shortcodes to an elementor button as far as I know – you can also use the pmpro_member shortcode (https://www.paidmembershipspro.com/documentation/shortcodes/general-shortcodes/#pmpro-member-shortcode) to output user meta (which in this case might be a link to a user’s chosen news feed).
The User Fields don’t allow for shortcodes to be entered in them however you can hook into different parts of the Membership Account page and add member-specific links to the page from there.
You can use the pmpro_account_bullets_bottom filter to add additional links to the Membership Account page.
You can also use the User Pages Add On (https://www.paidmembershipspro.com/add-ons/pmpro-user-pages/) which creates a page for each member and the level that they hold, allowing you to enter user-specific content into each user’s page for only them to see.
Kind Regards,
Jarryd
Support Manager at Paid Memberships Pro
-
This reply was modified 1 year, 11 months ago by
Jarryd Long.
Thanks for that, Jarryd. I’m not sure whether I explained myself properly. I will setup a text-type user field, which the new member will use at sign-up to type in the name of their favorite local news site, eg. one might have http://www.drygulchtelegraph.com, and another http://www.patagoniatimes.com in their local news field.
Then, on their logged in page, I want to have a button titled “Local News”. When the user clicks on it, it will take them to their chosen page. Is this a feasible thing to achieve?
That should be possible then, yes. Use the [pmpro_member] shortcode in the button that you create with Elementor on the page to output the link value and it should do the trick.
Kind Regards,
Jarryd
Support Manager at Paid Memberships Pro
Thanks Jarryd, so just to update this.
I had created custom a user field in the Memberships->Settings->User Fields area. This was completed on sign up (at text-type field, so relies on people to put in a valid website address) and editable in profile.
I called one of them “Personal Link”, which gives me a field called “personal_link”. So, the person might insert http://www.goodstuff.com
I created an icon box in Elementor, and there is a “link” option, in the content area. There is a stack of pancakes, which is the “Dynamic Links” area. Go down to Site->Shortcode, then insert your PMPro shortcode, eg. [pmpro_member field=”personal_link”]
After that, when you click on the icon box, it should take you to that site.
Thank you for the update. All of those steps look good to me – is it now working as expected for you?
Kind Regards,
Jarryd
Support Manager at Paid Memberships Pro
Yes, it’s working fine, thanks for the assistance. Note that you can use a similar strategy to make an entire container into a clickable link.
I’m so glad to hear this is now working for you. Feel free to reach out if there’s anything else we can assist with.
If you’re enjoying Paid Memberships Pro, would you consider leaving a 5-star review?
Your feedback helps other people who want to use PMPro, especially if you can include details about specific features that you’ve found valuable for your membership site.
Here’s the link to create a new review https://ww.wp.xz.cn/support/plugin/paid-memberships-pro/reviews/
Kind Regards,
Jarryd
Support Manager at Paid Memberships Pro