Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-15-2010, 03:29 PM   #1
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,090
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?
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2010, 03:34 PM   #2
closer
Confirmed User
 
closer's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: ICQ :: 34739932 :: Les Pays-Bas
Posts: 1,707
dunno about any plugin for this except the one you found, but you could also try conditional tags?

http://codex.wordpress.org/Conditional_Tags
closer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2010, 04:19 PM   #3
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
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
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-15-2010, 04:51 PM   #4
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by harvey View Post
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'); ?>
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.