php - Get content of specific page in WordPress -
php - Get content of specific page in WordPress -
at moment querying out pages have in wordpress , displaying them on page. this:
<?php query_posts(array('post_type' => 'page')); while(have_posts()) { $this_page = the_post(); echo the_content(); } ?>
the question is, how can same thing 1 specific post? side note, if need utilize id's of pages can find them, @ moment don't see id page has in wordpress.
something this?
query_posts( array ( 'category_name' => 'my-category-slug', 'posts_per_page' => -1 ) );//al items my-category-slug while(have_posts()) { $this_page = the_post(); echo the_content(); }
php wordpress loops
Comments
Post a Comment