Thursday, March 1, 2018

How to show post page content using id in wordpress | Wordpress.


query_posts(array('post_type' => 'page','order' => 'ASC', 'post__in' => array(216,220,218,222))); while (have_posts()) : the_post();

the_post_thumbnail_url();

echo the_title();

echo substr(strip_tags(get_the_content()),0,90);

No comments:

Post a Comment