WordPress Post Tabs
Extra p tag before the content (9 posts)

  1. resting
    Posted 4 years ago #

    Wondering, anyone having this issue that its entering an extra p tag for the contents?
    Ironically I have to wrap the [tab] shortcode with p tags to remove it.
    <p>[tab name="name"]</p>


  2. ardalin
    Posted 4 years ago #

    Thank you! I have the same issue, and your solution helped me!
    What a wonderful world - Ive met the problem 15 min ago, and you posted solution 5 hours ago)))

  3. Rob Yardman
    Posted 4 years ago #

    Had the same issue. Thanks for posting the work around.

    Interestingly this was posted as a fix the last update although that was in 2011. I'm sure a lot has changed since then.

    Version 1.3.1 (08/02/2011)

    Fix - For some installations, tabs were not working in case the Post/Page ID was changed in footer due to custom WP Query. Fixed this issue, so that the tabs JS will pick correct tab ID in all cases.
    Fix - Tabs were trimmed off in RSS feed in case full post text is chosen to be displayed in the RSS feeds. Corrected the issue. Thanks Michael who brought it forward.
    Fix - An extra space used to appear before the content in the tab in some cases due to empty p tags (WordPress autop formatter). Fixed this issue.

  4. wycks
    Posted 4 years ago #

    There is an easier work-around, make sure the ending [/tab] and the start of the next [tab] have no space.

    So it should be :

    [tab name="name"]
    some content with breaks is ok

    as lonjg as the [tab] brackets have none
    [/tab][tab name="two"]
    more content

  5. allison_k_jones
    Posted 4 years ago #

    @resting Thanks for the fix. I was going nuts try to find it to delete the damn thing.....completely forgeting to check the support page. :-p/

  6. jacky_K
    Posted 3 years ago #

    wycks Perfect solution! Thanks!

  7. bhguy
    Posted 3 years ago #

    remove_filter( 'the_content', 'wpautop' );
    add_filter( 'the_content', 'wpautop' , 12);

  8. supertester
    Posted 3 years ago #

    why first removing the wpautop filter, and then readd it? does the priority number matter?

  9. tabbervilla
    Plugin Author

    Posted 3 years ago #

    Inserting the tabs using QuickTag button is the best way to get tabs and tab content without any extra <p> tags or </br> tags. Use QuickTag button to insert the tabs.

    Anyway, thanks for sharing the workaround and fixes.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Post Tabs
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.