Tagged Questions
0
votes
2answers
28 views
How to display the content HTML of a page without displaying the gallery code as well
I am using the below to fetch the content of a page by its name and output the html
$my_wp_query = new WP_Query();
$page = $my_wp_query->query(
array(
'post_type' => 'page',
...
0
votes
1answer
271 views
Where is the content cache when using apply_filters('the_content…?
The following code block is giving me an accumulated result:
foreach($sections as $section) {
$content_post = get_post($section->ID);
$content = $content_post->post_content;
...