Blog Posts with Category of Blog only

Dedicated support forum for CloudHost elegant bosting WordPress theme which is perfect for your business and hosting websites. Here you can ask questions and discuss with other theme users.
GK User
Wed May 07, 2014 3:04 am
I have set up a Latest News Page http://development.fourier.com.au/f2/news-events/latest-news/and have GK News Show Pro data source set for Latest Posts.

I also want to have a Blog page and I've created a category of Blog for these posts.

I don't want the Latest News page to have the Blog posts. How do I set the Blog page to have only posts with a category of blog and stop these from appearing in the Latest News.

Thanks in advance
S
User avatar
Senior Boarder

GK User
Wed May 07, 2014 7:59 am
Hello,

You have to edit Cloudhost/template.latest.php file and change this fragment:
Code: Select all
query_posts('posts_per_page=' . get_option('posts_per_page') . '&paged=' . $paged );


to:
Code: Select all
query_posts('cat=xxx&posts_per_page=' . get_option('posts_per_page') . '&paged=' . $paged );

where xxx is the id of your category.

You can also create (duplicate) template.latest.php file and create another (BLOG) page with only id of your blog category id.
User avatar
Moderator


cron