tabs break when using apply_filters()
-
Hello,
I am trying to display a page with tabs on a custom page template. In order to do this I am using the code:
$post = get_post($id); $content = apply_filters('the_content', $post->post_content); echo $content;
But this seems to be breaking the tabbed content coding and the first tab content displays, but the other tabs are blank. I tried using:
$filtered = str_replace(array('<p>','</p>'), '', $post->post_content);
based on another thread I found, and this gives me all the content but then the shortcode doesn’t render to produce the tabs.
The html code all looks the exact same to me on my custom page template vs. regular page template, and I am not seeing any js errors.
Any help would be appreciated, thank you in advance,
Donna
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘tabs break when using apply_filters()’ is closed to new replies.