$content_parts и easy table of contents
-
I use your easy table of contents on the site.
In my template, instead of <? php the_content (); ?>
code inserted<?php
global $post;
$content_parts = get_extended( $post->post_content );
echo apply_filters(‘the_content’, $content_parts[‘main’]);
echo “”;
echo apply_filters(‘the_content’, $content_parts[‘extended’]);
?>This code splits the article in two using the tag “more”
But the problem is that the easy table of contents Plugin perceives the parts of $ content_parts [‘main’] and $ content_parts [‘extended’] separately, and not as a single the_content ().
The plugin automatically generate a table of contents fo first, $content_parts [‘main’], and then starts again paragraph reports starting with $content_parts [‘extended’]
As a result, I have or two table or one table without same headers.help solve the problem.
is it possible to make changes to the plugin so that everything works well?
- The topic ‘$content_parts и easy table of contents’ is closed to new replies.