Tagged: shortcode nesting
May 11, 2011 at 1:42 pm #3379
I am using the J Shortcode plugin to have an accordion affect within the product description. The is working fine with version 4.5.0 of the WP eStore plugin. However, when I upgrade to the current version 5.3.2 the accordion affect is broken and the shortcode [jaccordion] and [/jaccordion] just show as text within the description.
What is different between the two versions? Is there a work around to get the accordion affect to work with v 5.3.2
Here is the link to the J Shortcode pluginMay 12, 2011 at 12:14 am #32342
What shortcode are you using to display the product? Please post a link to the page where this is happening.May 27, 2011 at 6:34 pm #32343
The short code I am using is [jaccordion] here is a link – http://thesilverclouddiet.com/vitamins-dietary-supplements/
Also, when I deactivate Version v5.3.2 and go back to Version v4.5.0 the email notification on sales does work, sales don’t get recorded in the DB and I get the following error when I try to access Manage Products in the Dashboard Admin. Looks like I am stuck with v5.3.2 but need to correct the shortcode issueMay 27, 2011 at 7:10 pm #32344
I just tested with a different accordion plugin – Content Accordion – http://patrick.forringer.com/2011/04/wordpress-content-accordion/ and am get the same results as J Shortcode pluginMay 28, 2011 at 2:29 am #32345
You have the following scenario going on your site:
Just so you can find them easily… view the source code of your page and look for the following two lines of code which is including two different versions of JQuery on your site (one coming from your theme)… it’s a mess:
Thanks for this explanation but I don’t understand what I need to do to fix this – Use a different theme? When I test with the base WordPress theme TwentyTen the accordion is still broken in the product description.
Also, the shortcode works fine when it is not a part of the product description – see this link – http://thesilverclouddiet.com/test/ below the product information the accordion is working.
Please provide some more direction, thank you.May 28, 2011 at 11:46 pm #32347
You have got the following line of code coming from your theme:
So switching the theme will take care of that one (the article I linked explains how Jquery library should be included… so the theme developer simply need to follow WordPress’s guideline)
Then you have the following line that is coming from a plugin which also need to be removed:
You can do this test to identify which plugin is doing this (look at the plugin test section):
The above just takes care of the JQuery conflicts you have on the site. Next, lets look at whats happening with the shortcode filtering. Which WP eStore shortcode are you using to display the products?June 1, 2011 at 1:21 pm #32348
I tested a new theme – the WordPress default – TwentyTen and the accordion is still broken. This accordion worked fine with Version v4.5.0 before I upgraded to release version 5.3.2.
The line you said needed to be removed:
is coming fro the J-Shortcode plug-in. When I deactivate this plug-in the line of code is gone.
Why did this work fine with the older version 4.5.0 but not the current version? I need some more help to resolve this issue.June 1, 2011 at 1:34 pm #32349
One more thing. When I test the accordion shortcode outside of the WP eStore product description area it works fine. See link http://thesilverclouddiet.com/shortcode-test/ that has the same html – shortcode as is used on http://thesilverclouddiet.com/vitamins-dietary-supplements/anti-aging-factor/ and displays the accordion correctly.
Something is happening with WP eStore that is breaking the shortcode. It works fine with the theme jquery script as seen in the test page.
Your help will be greatly appreciated.June 1, 2011 at 11:59 pm #32350
I asked you the following question in previous post and didn’t get a reply yet:
Which WP eStore shortcode are you using to display the products?
Can you please copy and paste the exact shortcode that you are using (the one that is not working with this accordion thing).June 2, 2011 at 3:58 am #32351
The shortcode used on the product pages are the following:
[wp_eStore_cart_fancy1_when_not_empty]June 2, 2011 at 5:07 am #32352
This is the exact shortcode that you were using before? Nothing has changed in that shortcode. Lets give it a try by changing the shortcode filtering priority to force the filtering of the fancy display to happen before the J Shortcode plugin.
Please open the “wp_eStore1.php” file and find the following line of code:
Once you find it change it to the following:
- You must be logged in to reply to this topic.