Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eMember

Using shortcodes within shortcode

(4 posts) (3 voices)
  • Started 4 months ago by devvoman
  • Latest reply from devvoman
  • Possible Solutions (Related Topics):
    1. Using shortcodes in the Login Widget Message
    2. Dynamically Create Custom Product Displays Using Product Detail Shortcodes
    3. Using Shortcodes in a Widget?
    4. Shortcodes not processed within restricted content shortcode
    5. Using shortcode for audio player within fancy display

Tags:

  • protected content
  • shortcodes
  1. devvoman
    Member

    Hi there,

    I would like to hide content displayed by a shortcode within a shortcode. Here is the example:

    [emember_protected do_not_show_restricted_msg=1]
    Welcome to the members area!
    [wp_eStore_members_purchase_history_with_download]
    [/emember_protected]

    But it appears once logged in, the members purchase history with download doesn't initiate, instead it shows the shortcode. I could use the shortcode outside of the protected content, but I wish to not show the "You need to be logged in as a member to view the purchase history" message.

    Is there a workaround for this?

    Thanks!

    Posted 4 months ago #
  2. Peter
    Moderator

    Hi,
    I've just done a quick test doing what you've done on my test site and it works ok.

    Which version of eMember and eStore are you using?

    Posted 4 months ago #
  3. admin
    Key Master

    Try the tweaks in the following two posts and let me know how you go:

    http://www.tipsandtricks-hq.com/forum/topic/estore-shortcode-inside-another-shortcode-shortcode-nesting-not-working

    http://www.tipsandtricks-hq.com/forum/topic/emember-shortcode-inside-another-shortcode-shortcode-nesting-not-filtering

    Posted 4 months ago #
  4. devvoman
    Member

    That works great thank you! Thanks for not giving me a hard time about it being a re-post :)

    Posted 4 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin