0
votes
0answers
20 views

Add class to all parent elements inside the_content

Is there a way to add a class to all parent elements inside the_content? My problem is I'm using this kind of css selector: .post_content>* {margin-bottom:10px;} This is to due with mostly ...
0
votes
2answers
35 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
322 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; ...