Linking a category to a page
I'm sorry if this has already been discussed - I did a search but I am afraid my use of terminology may be a little off-kilter...
I am just configuring my blog and have run into a little problem. Basically I want to be able to add posts to two different pages. I have created two categories for this very purpose. When I mark a post category as "News" I would like it to appear on the homepage. When I mark a post as "Programmes" I would like it to appear on the New Programmes page. However, I cannot see any way of linking a page to a specific category or vice versa. Any ideas? Here is my blog - http://www.futurefarmingvoices.org.uk/ Thanks for this great WP theme btw - it is rather beautiful. :) |
This plugin should be able to do that http://wordpress.org/extend/plugins/page2cat/
Atahualpa has plug & play support for it, a little code change is required though, see post #9 in this thread: http://forum.bytesforall.com/showthread.php?t=177 |
Thanks Flynn but it doesn't quite work. I did exactly as you said and followed the instructions for the plugin but now when you click "New Programmes" in the top menu, the test post does not show on that page. Weird.
Thanks anyway. |
I cannot view your site, it redirects me to the login page - something you may not be aware of since you're logged in. Perhaps a setting at Settings -> Private
As for the plugin: It'll insert the page content into the category page - not the other way round. So you would have to go to a category page to see the page content at the top of that category page. Added: And you would have to associate pages with categories at the theme's setting page Site Admin -> Settings -> Category Pages |
I think I get it now... there are quite a few people over at the support forum for that plugin who are after the same as me.
You are right - I want the exact opposite of what you described - I basically want the page to only display the contents of one category. I am sure that one of my techie friends can do some kind of filter for the page in the php. That's how I guess it can be done. Thanks for your time and thanks again for the template. :) |
After looking closer it seems that the author has added the opposite feature via tags:
By popular demand, version 2.5 also ships with a shortcode like [catlist] that allows to display a list of posts from a certain category inside a post or a page |
Hi,
I am working with Jimjiber on this one. I would normally use something like the query posts template tag to do this but I cannot work out where in the index.php file to do this as there is a lot of non-standard code in this wordpress theme (good though it is). What I did was create a new page template called catlist from the index.php file and applied it to the new programmes page and was intending to use something like query_posts('cat=4'); so that the page displays only posts from that category. Any idea where in the Atahualpa 3 index page you would put this? I would rather use a template tag method than using another plugin it seems a bit over the top. |
You could either make a copy of index.php as catlist.php and put your code in line 40 before this:
PHP Code:
PHP Code:
|
Brilliant
Thanks, That worked a treat. |
Old thread but the title is right. What an oversight on somebody's part to not allow page categories.
I have 20 pages and one Blog page and in search - everything comes up in the Blog category .... with the "leave comment" even tho comments are not allowed For that matter I'm thinking about disabling search as it's really a joke |
All times are GMT -6. The time now is 01:57 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.