• Hello,

    I have made my own theme with shortcodes to WordPress.

    In my filters i have:

    remove_filter('the_content', 'wpautop');
    add_filter('the_content', 'wpautop', 99);
    add_filter('the_content', 'shortcode_unautop', 100);

    This should remove paragraph tags around and in my shortcodes.

    My shortcode output: http://pastebin.com/EdXvmauY (Partial of the entire code)
    This produces: http://pastebin.com/psfBuDhM

    Note the additional <p> tags at line 15, 29 and 43.
    The paragraph tags disappear if i remove the anchor tag in my shortcode, but thats not a solution i can use.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘WordPress shortcode_unautop shortcode not functioning’ is closed to new replies.