Exclude categories from blog roll

Get help or discuss with other members about business Joomla! 3 and 2.5 template designed especially for your start-up projects on dedicated support forum.
GK User
Mon Oct 13, 2014 9:05 am
Hello
I'm using your startup theme for wordpress.
I have created some posts wich I want them to show up using Gk news Show pro.
Those posts are under a special category.

The problem is that those posts are also appearing on my latest post page.
Is there any way I can filter them?

If not, how could I create content just for the Gk news Show pro without appearing elsewhere?

Thanks!
User avatar
Fresh Boarder

GK User
Mon Oct 13, 2014 12:14 pm
Hello,

You can use i.e. custom post type as a source for your GK news Show Pro, or exclude specific category from latest template page. In this case you should edit Startup/template.latest.php file and exclude category from the query, please check e.g. this information:

Display all posts except those from a category by prefixing its id with a '-' (minus) sign.
Code: Select all
$query = new WP_Query( 'cat=-12,-34,-56' );

http://codex.wordpress.org/Class_Reference/WP_Query
User avatar
Moderator

GK User
Mon Oct 13, 2014 2:26 pm
Hello
thanks for your prompt reply but I can't find the new WP_Query() in Startup/template.latest.php
is this the correct file?
Regards
User avatar
Fresh Boarder

GK User
Mon Oct 13, 2014 6:57 pm
Hello
finally I managed to do this, thanks!
User avatar
Fresh Boarder


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