Tag Info

Hot answers tagged


You have a couple of issues with your code. You have to set your loop to your custom query. As it stands, it is set to the main query You must always reset postdata with all instances of WP_Query Your code should be something like this <?php $args = array('post_type' => 'textorial'); $query = new WP_Query( $args ); while ($query->have_posts() ...


For showing limited content , wordpress provides functionality of excerpt. By default excerpt will take upto 50 characters but you can change using wordpress hook. Gor better understanding you can refer http://codex.wordpress.org/Excerpt.

Only top voted, non community-wiki answers of a minimum length are eligible