Use this plugin to create custom post type :
https://wordpress.org/plugins/custom-post-type-ui/
Code 1:This is an example
'bios','posts_per_page'=>'3' );
//The loop
//The display
?>
Code 2: Replace "movies" to your own custom post type name.Which you created
'movies', 'posts_per_page' => 10 );
$the_query = new WP_Query( $args );
?>
have_posts() ) : ?>
have_posts() ) : $the_query->the_post(); ?>
Code 3: By default, WordPress will retrieve and display the most recently published content first if you don’t specify any ordering parameters. You can specify this argument to your query to tell WordPress how to sort the items to be displayed. For example, below is the argument to display 3 posts per page and sort the titles in descending order.
'bios','posts_per_page'=>'3','order'=>'DESC','orderby' => 'title');
//The loop
//The display
?>
Default Example : Perfect Working
'tech_competences', );
$loop = new WP_Query( $mypost );
?>
have_posts() ) : $loop->the_post();?>
>
'
' . __( 'Pages:', 'twentythirteen' ) . '', 'after' => '
', 'link_before' => '
', 'link_after' => '' ) ); ?>
Thanks for sharing this guide, Integrating WordPress Loop is very important to show posts on theme.
ReplyDeleteHello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. wordpress website
ReplyDeleteThank you very much for writing such an interesting article on this topic. This has really made me think and I hope to read more. WordPress builders
ReplyDelete