How do I Post to pages other than post page
-
Hi, I set up my site with a static homepage and and post page. I would like to be able to post to other pages within the site and chose which page they get posted to but cannot figure out how. Can anyone help me?
-
You don’t specify what page to post, but you can design Page Templates to display posts. See the Page of Posts example in the Pages article.
Also remember WordPress automatically ‘generates’ archives that can be accessed via links presented via template tags such as wp_get_archives(), wp_list_categories(), wp_list_authors(), and wp_tag_cloud().
Well I want to be able to post to a couple of different pages at different times. I dont want my posts to always show up on the posts page but would like a few of the pages to be for posts. These pages would correspond to a category so they always show up on that page.
For example, if I have a a page set for posts now but have another page for a family reunion. When I have an update for the reunion I want to write a post and put it in the reunion category and have it show up on the reunion page. How might I do this? Thanks
the site in question is http://www.thefullerfamilysite.com and you can see I have a reunion page that i would love to post to
So like have you page for the family reunion with the date and time of the event or whatever. Then if someone wants to ask a question they can right on that page?
Like:
Here’s the Reunion Stuff(can update but is always on top)
Question
response
question
(those as posts to a category called reunion maybe)If this is what you mean I’d like to learn how to do the same. I think you need two loops but I haven’t been able to make it work yet.
When I have an update for the reunion I want to write a post and put it in the reunion category and have it show up on the reunion page.
That process is actually handled by WordPress native ‘archiving’ process. You don’t do anything to create the archive, that’s an automatic thing WordPress does for you. Usually, archives are date, category, tag, or author, based.
Access to archives is typically presented via links in a sidebar under an Archive (date based), Category, or Tag Cloud, heading. Widgets, or Template Tags, such as wp_get_archives(), wp_list_categories(), wp_tag_cloud(), and wp_list_authors(), are the constructs used to present links to users to visit your various archives. The process of placing code in your Theme’s Templates is explained in Stepping Into Templates and Stepping Into Template Tags.
Once a user clicks on a Category link in the sidebar, the display of those posts can be controlled by a Category Template. Other Templates, such as Author Templates, and Tag Templates, are available if you set them up. These Templates can be coded via Template Tags such as the_title(), the_content(), or the_excerpt(), to display just a post title, the full content of the post, or just an excerpt of the post.
Also, it is important to understand the Template Hierarchy, as that is how WordPress determines what Template to use to render the posts for reading by your readers.
If a user visits a Category archive, then clicks on a given post title in that Category archive, the display of that single post is again presented by another Template, and again, the Template Hierarchy determines what Template displays that single post. Finally, that single post Template can be coded to display just the title, the full post content, or an excerpt.
Note, if you still want categories displayed in Pages, then see A Page of Posts.
MichaelH, I understand what you mean about the archives, however, I would like to be able to post to the reunion page so that the posts always show only on the reunion page. I currently dont post to the reunion category because I dont want those posts to show on the normal posts page, which is Kiley’s Photo Blog. The two are not related so I want to be able to split them up.
I also want to create another page for my sister to be able to post to separate from the the photo blog or reunion page. So in all I want to be able to choose what posts go to what page based on their category, will “A Page of Posts” allow me to do this? If so, do I just add the page to my server along with header.php, etc.?
bfunkera has the same problem I posted on this forum a while back. This is the post that I ended up with a “suspected spam” in my email referring to my post on the second page.
I appreciate that wordpress automatically proceeds to another page the instant the page limit is reached, but what I would like is that each category will have its own running page in such a way that each category will run up its own number of pages.
In other words, there will be one separate sub-blog for each category. And different category selections will link to a different page.
Yes coolambo, this is basically what I am looking to do. Does anyone know how I can do this? My php is very limited but i could probably do it given some assistance.
If you want a Page to hold a certain set of posts belonging to a category, then yes you want to read A Page of Posts.
Hey MichaelH, i gave A Page of Posts a try and couldnt get it. I think i might be having trouble here
<?php if (is_page('80') ) { $cat = array(11);I left this off because it doesnt pertain
} elseif ( is_page('16') ) { $cat = array(32); } elseif ( is_page('28') ) { $cat = array(17); } else { $cat = ''; }And put this in
$showposts = -1; // -1 shows all posts $do_not_show_stickies = 1; // 0 to show stickies $args=array( 'category__in' => $cat, 'showposts' => $showposts, 'caller_get_posts' => $do_not_show_stickies, ); $my_query = new WP_Query($args); ?> <?php if( $my_query->have_posts() ) : ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php //necessary to show the tags global $wp_query; $wp_query->in_the_loop = true; ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>I imagine there is something else I have to change since it is not the Kubrick theme but wouldnt know where to start
The part you left our is important because that is where you link the page id to the category id.
I thought i was doing that in the first part. The ids i used in the first part are for the page and category i want to use. If this is wrong then what should be the succession of events or ids?
Do I keep using the same id’s over? or should the id’s in the first part be for some other page and cat?
What I am looking to do is every time i create a post under the catid 11 I want it to show on page id 80. How does that translate into here
<?php if (is_page('21') ) { $cat = array(12); } elseif ( is_page('16') ) { $cat = array(32); } elseif ( is_page('28') ) { $cat = array(17); } else { $cat = ''; }<?php if (is_page('80') ) { $cat = array(11); } else { $cat = ''; }
The topic ‘How do I Post to pages other than post page’ is closed to new replies.