How to post on 2 seperate "Pages" or "Cats"
I need to be able to make posts and not have them appear on the main page. How can I do this?
I'm using the main page as a blog that will have post daily. I need to be able to post to the secondary page and not have it show up on the first page. What is the best way to set this up? Do I need a PlugIn? I tried Page2Cat but it just bullet point lists Category Titles. |
To have posts of a certain category not show up on the home page, find, in index.php, around line 100-103, this:
PHP Code:
and add the following right above it (to exclude posts of the category with the ID 3): PHP Code:
PHP Code:
|
1 Attachment(s)
I do have that code. It's around line 41 though.
I was hoping that I could create a custom field or do something else. I would like to avoid having to update my index.php every time I post to the secondary page. Any other Ideas or suggestions? |
Why would you have to update your index.php each time? If you want a new post to not appear on the homepage, put it into the category that you excluded with the above code.
|
I don't know what I was thinking, you're right.
|
The code works, the new posts are now only posting to the Category I want them to.
Is it possible to not have those posts show up in the "Recent Post" widget? Also the posts to the Categories show up in a "Collapsed" state, not showing the content in the body, only the Title. Any idea about this? |
Quote:
Quote:
HTML Code:
<!--more--> |
Quote:
No, I'm not using the more tag. Quote:
|
Quote:
I found this post very helpful, however I tried it on my website: www.gametvweb.com didn't work, Actually the instruction <?php // Do this for all posts: while (have_posts()) : the_post(); $postcount++; ?> was in page.php file not the in index.php. I dont want to havefeatred articles to be posted on the main page, do u have any clew :( how to do it. any help will be much appreciated. thanks |
You shouldn't have a page.php. What Atahualpa version do you have?
|
Sorry I don't know what is Atahualpa :confused: ? how can I know which version is? the only think I know is I'm using wordpress 2.7.1 !!!
But definitely the them has page.php file, I included the them file on this link http://www.gametvweb.com/theme/ please take a look at them and let me know what do u think? Your help really appreciated. Thanks |
Quote:
|
Sorry I didn't know that :o, but thanks for your time anyway :)
|
Thank to everyone for the explanations.
Reading you guys talk through these issues really helps a beginner like myself :D |
Hi Flynn, I was wondering if we could backtrack to a part of post #1
Quote:
How to post a certain category, in this case "news" category posts, to a page called NEWS, whilst any other posts will go to HOME page? I have page2cat plugin, but that doesn't seem to work even though I have filled in all the bits that need to be filled in and linked it all together. Any ideas? |
I put together a 'HOWTO: a 'Custom Query' PAGE template' thread with a template to allow you to make custom queries because page2cat didn't work for me. see
http://forum.bytesforall.com/showthread.php?t=7822 it is in the gold forum |
I've achieved this on a site using the List Category Posts plugin.
http://picandocodigo.net/programacio...lugin-english/ |
Hi Juggledad,
Quote:
|
Send me a PM with a copy of the pay pal confirmation and I'll look into it
|
All times are GMT -6. The time now is 12:39 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.