Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore F.A.Q/Instructions › eStore – Shortcode Inside Another Shortcode (Shortcode Nesting) Not Working
- This topic has 12 replies, 7 voices, and was last updated 10 years, 5 months ago by
wzp.
-
AuthorPosts
-
October 22, 2011 at 2:23 am #4591
admin
KeymasterIf you are using a shortcode inside another shortcode and the innermost shortcode is not working/filtering then do the following tweak to alter the eStore’s shortcode filtering priority and see if it helps (changing the filtering priority helps one shortcode to be processed before the other one):
1. Open the “wp_eStore1.php” file and search for the following line of code:
add_filter('the_content', 'do_shortcode',11);
2. Once you find it replace it with the following:
add_filter('the_content', 'do_shortcode');
Now try it out and see if the nested shortcodes are all working.
April 17, 2012 at 2:10 pm #37808Yusuf akdag
MemberI’m trying to solve that issue but nothing changed.
Is that requires to restart webserver in case of wp_estore1.php cached?
April 17, 2012 at 11:13 pm #37809admin
KeymasterNope, no restart required. Share the two shortcodes that you are using in a nested setup.
April 17, 2012 at 11:27 pm #37810Yusuf akdag
MemberHi,
the shortcodes i’m trying to use;
[emember_protected do_not_show_restricted_msg=1]
[wp_eMember_login]
[/emember_protected]
I don’t want to show login stuff on my account page.
April 17, 2012 at 11:46 pm #37811admin
KeymasterThank you. Those are eMember shortcodes. This thread is for eStore. Try the following one:
April 17, 2012 at 11:47 pm #37812Yusuf akdag
MemberOh they’re indeed emember shortcodes.
Thank you for fast response.
April 18, 2012 at 2:00 pm #37813Yusuf akdag
MemberHello Admin,
I tried this approach but didnt worked. Is there anything I should check?
Plugin version v7.8.4
April 19, 2012 at 3:45 am #37814Ivy
MemberI remember doing some work on your site. Please reply to that email with the access to the site and a link to the page where you have the above shortcodes and I will check it out.
April 19, 2012 at 7:16 am #37815Yusuf akdag
MemberThanks Ivy,
i installed my version of emember and estore again. Because i had maaany style customizations and also mail formatting stuff in it.
And as you stated you cant have troubleshoot customized scripts.
October 15, 2012 at 11:36 am #37816karnage57
MemberThanx alot it worked 4 me… How did u know how to do that?
November 16, 2012 at 7:52 am #37817vkmaerkg
MemberGreat!!!
I had this problem but now all my shortcode work!
Thank you!
March 25, 2014 at 7:58 pm #37818webmiss
MemberI have a layout issue when I nest a shortcode inside of a shortcode:
[sc_embed_player fileurl=”http://www.airdrivenmusic.com/audio-demo/rwb_brazilian_love_affair_clip.mp3″%5D Brazilian Love Affair[wp_eStore_add_to_cart id=36]
If you go to [http://www.airdrivenmusic.com/midnight-magic-by-the-rwb-project/], you will see that the add to cart button is below the player and title. I’d like it to go side by side all on one line. Any way to do this?
Thanks for your help.
I decided to use a different shortcode. But would still like to know if the above can be done.
March 26, 2014 at 2:35 am #37819wzp
ModeratorThey look “side-by-side” to me, using Chrome 32.x, Firefox 27.x and IE 11.
-
AuthorPosts
- You must be logged in to reply to this topic.