Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

How to post on 2 seperate "Pages" or "Cats"


  #1  
Old Feb 24, 2009, 04:37 PM
TPR
 
7 posts · Feb 2009
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.
  #2  
Old Feb 24, 2009, 05:19 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
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:
    <?php // Do this for all posts:
    
while (have_posts()) : the_post(); $postcount++; ?>
(You might not have the $postcount++ part if your Atahualpa version is older)

and add the following right above it (to exclude posts of the category with the ID 3):
PHP Code:
<?php if ( is_home() AND !is_paged() ) {
query_posts($query_string "&cat=-3");
?>
To exclude posts from several categories, i.e. categories with the ID's 3, 7 and 11:

PHP Code:
<?php if ( is_home() AND !is_paged() ) {
query_posts($query_string "&cat=-3,-7,-11");
?>
  #3  
Old Feb 24, 2009, 05:48 PM
TPR
 
7 posts · Feb 2009
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?
Attached Thumbnails
Click image for larger version

Name:	Picture 9.png
Views:	4610
Size:	18.9 KB
ID:	48  
  #4  
Old Feb 24, 2009, 06:07 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
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.
  #5  
Old Feb 24, 2009, 06:21 PM
TPR
 
7 posts · Feb 2009
I don't know what I was thinking, you're right.
  #6  
Old Feb 25, 2009, 07:54 AM
TPR
 
7 posts · Feb 2009
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?
  #7  
Old Feb 25, 2009, 08:02 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Quote:
Originally Posted by TPR
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?
Probably with another widget, something that offers more options. See http://wordpress.org/extend/plugins/

Quote:
Originally Posted by TPR
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?
Only the title, or the title and a part of the body? Are you using the Read more tag
HTML Code:
<!--more-->
in those posts? That would require another code
  #8  
Old Feb 25, 2009, 04:21 PM
TPR
 
7 posts · Feb 2009
Quote:
Only the title, or the title and a part of the body? Are you using the Read more tag
After looking at it a little closer. It will show the Text in the body, but not the images/media in the body. When the Post Title is clicked the body will expand and show the image/media.

No, I'm not using the more tag.

Quote:
Probably with another widget, something that offers more options. See http://wordpress.org/extend/plugins/
I can't find something to work that doesn't through off the design of the site. All That I need is the widget to not display comments from a couple categories.
  #9  
Old Apr 2, 2009, 11:07 AM
Nad
 
3 posts · Apr 2009
Quote:
Originally Posted by Flynn
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:
    <?php // Do this for all posts:
    
while (have_posts()) : the_post(); $postcount++; ?>
(You might not have the $postcount++ part if your Atahualpa version is older)

and add the following right above it (to exclude posts of the category with the ID 3):
PHP Code:
<?php if ( is_home() AND !is_paged() ) {
query_posts($query_string "&cat=-3");
?>
To exclude posts from several categories, i.e. categories with the ID's 3, 7 and 11:

PHP Code:
<?php if ( is_home() AND !is_paged() ) {
query_posts($query_string "&cat=-3,-7,-11");
?>
Hello,

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
  #10  
Old Apr 2, 2009, 10:32 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
You shouldn't have a page.php. What Atahualpa version do you have?
  #11  
Old Apr 3, 2009, 02:35 AM
Nad
 
3 posts · Apr 2009
Sorry I don't know what is Atahualpa ? 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
  #12  
Old Apr 3, 2009, 08:47 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
Quote:
Originally Posted by Nad
Sorry I don't know what is Atahualpa ? 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
You seem to be using another theme. I cannot support other developer's themes I'm afraid. I suggest that you ask on the blog of the developer of your theme.
  #13  
Old Apr 4, 2009, 03:20 AM
Nad
 
3 posts · Apr 2009
Sorry I didn't know that , but thanks for your time anyway
  #14  
Old May 20, 2009, 07:35 AM
misspensen
 
1 posts · May 2009
Thank to everyone for the explanations.
Reading you guys talk through these issues really helps a beginner like myself :D
  #15  
Old Jul 29, 2010, 09:23 AM
ecampervanhire
 
3 posts · Jul 2010
Hi Flynn, I was wondering if we could backtrack to a part of post #1

Quote:
I need to be able to post to the secondary page and not have it show up on the first page.
NOT having a post turn up has been dealt with, but what about getting it to turn up on the 2ndry page?

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?
  #16  
Old Jul 29, 2010, 10:13 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #17  
Old Jul 29, 2010, 07:11 PM
writeleft's Avatar
writeleft
 
41 posts · Oct 2009
U.S.
I've achieved this on a site using the List Category Posts plugin.

http://picandocodigo.net/programacio...lugin-english/
  #18  
Old Aug 4, 2010, 06:32 PM
ecampervanhire
 
3 posts · Jul 2010
Hi Juggledad,

Quote:
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 have donated as instructed and still can't get in to your thread. I have also written to Flynn to mention this to him (it says to PM him at the top of this forum if you make a donation). Is it up to Flynn or you to credit this donation? Please PM me if you need the email address I used.
  #19  
Old Aug 4, 2010, 09:24 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Send me a PM with a copy of the pay pal confirmation and I'll look into it
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
categories, pages



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Display certain "Widget Area" on post pages only ? 3ukman Sidebars & Widgets 1 Jul 15, 2009 04:08 PM
where can I rename "categories" and "Pages" into other titling? curious Atahualpa 3 Wordpress theme 5 Apr 28, 2009 04:15 PM
How to style "post icon" and "post comments" text Whatsthatcat? RSS, Feeds & Subscribing 3 Apr 1, 2009 10:41 AM
Flexx theme - How to change my "List Category or Archives" to "List Titles ONLY" ?? idaks01 Post-Kicker, -Byline & -Footer 0 Mar 28, 2009 06:22 PM
modifying font size of "Today's Events" and "Upcoming Events" in sidebar ritland Forum How-To 0 Mar 16, 2009 04:23 PM


All times are GMT -6. The time now is 01:53 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.