get_post and running ez-toc
-
Hi,
Given the template I am using, I have to retrieve additional text content using the following PHP code in index.php
<?php
$id = 98;
$p = get_post($id);
$output = apply_filters(‘the_content’, $p->post_content);
echo $output;
?>However, eztoc isn’t working. It ignores the shortcode also. I have double checked the settings, tried auto-inserting, tried leaving everything default.
I suspect the problem relates to the way I inserting this content. Any ideas?
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘get_post and running ez-toc’ is closed to new replies.