Latest posts Page

Premium BuddyPress WordPress theme perfect for venue, music brand or community music website.
GK User
Wed Jun 01, 2016 4:41 pm
Hello,
in a page with latest posts template,
how can I show just the posts of some selected categories?

Thanks in advance.
User avatar
Fresh Boarder

Joshua M
Thu Jun 02, 2016 8:49 am
Hello,

You have to edit MusicState/template.latest.php file and change the query from line 17.
More informations may be found here:
https://codex.wordpress.org/Function_Re ... a_Category

Try to add
Code: Select all
cat=X

parameter, where X is your category ID.
User avatar
Moderator

GK User
Thu Jun 02, 2016 11:24 am
Hello!
Ok but I would like to have 2 pages of posts, one showing posts of category "x" and other showing category "y".
How can I do that?

If I do what you say, all posts pages will show just category "x" isn't it?

Thanks.
User avatar
Fresh Boarder

Joshua M
Mon Jun 06, 2016 7:50 am
Yes, if you would like to have 2 separate pages, please duplicate your MusicState/template.latest.php file into i.e. MusicState/template.latest2.php, change the first line (comments "Template Name: .....) of this duplicated file and change the cat="X" to your second category.

Now you can create two pages. First should use template.latest and the second template.latest2
User avatar
Moderator

GK User
Mon Jun 06, 2016 1:02 pm
Perfect,
thanks!

Solved!
User avatar
Fresh Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.