Support » Plugin: Accordion Shortcodes » H3 Tag Issue After 1.3 Update

  • Resolved karks88


    I updated a site to 1.3 and had an issue where anytime I used the [accordion-item title=””][/accordion-item] shortcode, there was a display problem on the front end of the site. Basically it was just a bit of HTML code (looks like it was missing the h3 in the tag) that looked like this:

    < class="accordion-title">Title Goes Here

    I went back to 1.2.4 and the H3 tag returned again.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Phil Buchanan


    I’m having trouble reproducing the issue, but I think I know what the cause may be. Can you try installing this beta version and let me know if it has resolved the issue?

    If not, you will still be able to roll back to version 1.2.4 here.

    Thanks for your help! I actually tried the beta and unfortunately the error came back.

    You can see a screen cap here.

    Plugin Author Phil Buchanan


    Hmmm. Now I’m really stumped. I’d obviously like to help you get this working again. I don’t want to ask you to do a lot of testing for me, but since I can’t reproduce it, I’m hoping you don’t mind.

    What other plugins are you using? What theme are you using? Would you mind copying and pasting your shortcodes as used in the editor?

    As far as I can tell it was a custom theme done by a previous developer.

    Plugins active are:
    Admin Menu Editor
    Advanced Recent Posts Widget
    Category Post Widget
    Contact Form 7/Really Simple CAPTCHA
    Custom Sidebars
    Disable Comments
    Duplicate Post
    Easy Fancybox
    Google Analytics for WP
    Google Doc Embedder
    Google XML Sitemaps
    Gravity Forms
    GroupDocs Viewer Embedder
    Media Library Assistant
    NextScripts: Social Networks Auto-Poster
    Remove Comments Are Closed
    Restrict Categories
    The Events Calendar
    Theme My Login
    Weather Widget 3
    WordPress Category Archive
    WordPress Importer
    WP Filter Post Category
    WPtouch Pro

    Half of these, I can’t tell you why they are there 🙂

    Here’s the code from one of the accordions not working:

    [accordion title="Codes"]
    [accordion-item title="International Residential Code"]International Residential Building Code[/accordion-item]
    [accordion-item title="International Building Code"]International Commercial Building Code[/accordion-item]
    [accordion-item title="Comprehensive Plan"][gview file=""] [/accordion-item]
    [accordion-item title="Zoning Ordinance"]Zoning Ordinance Table of Permitted Uses [/accordion-item]
    [accordion-item title="Rental Ordinance"]Rental Ordinance[/accordion-item]


    Plugin Author Phil Buchanan


    Please try this beta.

    If that doesn’t do it, then I’m thinking there is some conflict with another one of the many plugins you’ve got running there (although I’m not sure which one or why this update would cause the issues you are experiencing).

    Hi Phil, thanks for your help with this! Just tried the beta and still no luck. I checked in Firebug to see if there were any JS errors but nothing was coming up there.

    One of those things that will just drive you mad because there doesn’t seem to be any specific reason why it’s happening.

    Plugin Author Phil Buchanan


    Yes. Very frustrating.

    It shouldn’t be a JavaScript error. It sounds like the HTML tag name isn’t getting printed at all by PHP.

    If you are comfortable with PHP you can take a look at the accordion-shortcodes.php file. The lines that set the HTML tag are at: 100 and 114-126. Line 100 sets the default that gets printed in the accordion_item_shortcode() function (lines 122-126) if you don’t set a manual tag.

    Maybe a fresh pair of eyes on the code will help.

    Plugin Author Phil Buchanan


    I’ve pushed a new version (1.3.1) of the plugin which I hope will fix this once and for all. If you have a moment please test and let me know if you are still experiencing issues.

    Thank you, I’ll give it a shot! Sorry for not replying to this thread for awhile. I was on vacation then trying to catch up on everything missed. I really appreciate your efforts to fix this!

    Phil, this update looks to be working perfectly. Thanks so much!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘H3 Tag Issue After 1.3 Update’ is closed to new replies.