Ready to get started?Download WordPress


Accordion Shortcodes
[resolved] H3 Tag Issue After 1.3 Update (11 posts)

  1. karks88
    Posted 8 months ago #

    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.


  2. Phil Buchanan
    Plugin Author

    Posted 8 months ago #

    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.

  3. karks88
    Posted 8 months ago #

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

    You can see a screen cap here.

  4. Phil Buchanan
    Plugin Author

    Posted 8 months ago #

    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?

  5. karks88
    Posted 8 months ago #

    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="http://mechanicsburgborough.org/wp-content/uploads/2013/03/MECHANICSBURG-COMPREHENSIVE-PLAN-04-07.2.pdf"] [/accordion-item]
    [accordion-item title="Zoning Ordinance"]Zoning Ordinance Table of Permitted Uses [/accordion-item]
    [accordion-item title="Rental Ordinance"]Rental Ordinance[/accordion-item]


  6. Phil Buchanan
    Plugin Author

    Posted 8 months ago #

    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).

  7. karks88
    Posted 8 months ago #

    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.

  8. Phil Buchanan
    Plugin Author

    Posted 8 months ago #

    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.

  9. Phil Buchanan
    Plugin Author

    Posted 7 months ago #

    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.

  10. karks88
    Posted 7 months ago #

    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!

  11. karks88
    Posted 7 months ago #

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


You must log in to post.

About this Plugin

About this Topic


No tags yet.