Answers for "wordpress+get post content with wp_query"

PHP
0

wp get post content by id

$post_id = 5// example post id
$post_content = get_post($post_id);
$content = $post_content->post_content;
echo apply_filters('the_content',$content);
Posted by: Guest on July-19-2020
0

print query from get_posts wordpress

<?php echo $GLOBALS['wp_query']->request; ?>
Posted by: Guest on August-30-2021

Code answers related to "wordpress+get post content with wp_query"

Browse Popular Code Answers by Language