GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Looking for a[nother] WP plugin (https://gfy.com/showthread.php?t=953921)

baddog 02-15-2010 03:29 PM

Looking for a[nother] WP plugin
 
Looking for a plugin that will allow you to make a post to a particular page without showing up on the home page as well.

Tried Pages Posts but it adds the post to the homepage as well as its own page. Any ideas?

closer 02-15-2010 03:34 PM

dunno about any plugin for this except the one you found, but you could also try conditional tags?

http://codex.wordpress.org/Conditional_Tags

harvey 02-15-2010 04:19 PM

you don't need any plugin. You can do it in many ways, the easier one is to add the post to a category with posts that won't show, ie "privateposts".

Now open your theme's index.php and look for the loop. It can be constructed in different ways depending on the theme, but you will see something like this:

Code:

<?php query_posts ?>
Code:

<?php query_posts($query_string . '&cat=25'); ?>
where 25 is the category ID

or

Code:

<?php query_posts($query_string . 'category_name=privateposts'); ?>
of course you can exclude by many criteria, including custom fields, by author, by post ID, by date and so on, but the one above is the easier one IMHO

harvey 02-15-2010 04:51 PM

Quote:

Originally Posted by harvey (Post 16852504)
you don't need any plugin. You can do it in many ways, the easier one is to add the post to a category with posts that won't show, ie "privateposts".

Now open your theme's index.php and look for the loop. It can be constructed in different ways depending on the theme, but you will see something like this:

Code:

<?php query_posts ?>
Code:

<?php query_posts($query_string . '&cat=25'); ?>
where 25 is the category ID

or

Code:

<?php query_posts($query_string . 'category_name=privateposts'); ?>
of course you can exclude by many criteria, including custom fields, by author, by post ID, by date and so on, but the one above is the easier one IMHO


sorry, it should be:

Code:

<?php query_posts($query_string . '&cat=-25'); ?>


All times are GMT -7. The time now is 10:22 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc