How do I create a new page template?
This might be a stupid question, but how do you go about creating a new page template while using the Atahualpa theme? I want to create a page that uses a modified version of The Loop, to display posts from only certain categories, but have no idea how to do this, with Atuhualpa!
Your advice is greatly appreciated :) |
make a copy of index.php as whatever.php, at the very top of whatever.php put
<?php /* Template Name: My page template */ ?> Remove code you don't need, add additional custom code, and upload it to the Atahualpa root directory. Go edit or create a new page and the new page template will be listed as "My page template" in a drop down select menu at the top right |
Ok, thanks for this....I still can't find a solution for what I'm trying to do. Basically, on one of the pages of my site, I would like to display all posts from a certain category, and it's child categories. How do I do this?
|
Quote:
Is there anyone out there that might be able to help me with this request...it's holding me back from launching my site :) |
Anyone? :)
|
Are you looking for a list of the posts, or the posts themself? and are you looking for it on a static page? you could try this: http://forum.bytesforall.com/showthr...light=page2cat
|
I'm looking for the posts themselves....on a static page.
I'm a bit confused - the link you sent me to that other thread - is that a plugin that I should download and install? And then, do I need to create a new archives.php file? |
Yes install the page2cat plugin:
http://wordpress.org/extend/plugins/page2cat/ It is super easy to use. The way I've used it is like this. After the plugin is installed create a static page. Then edit the page. Write whatever you want to appear above the posts (as a header) or nothing if it suits you. Then, place a special tag ([catlist=xx] where xx is the id for the desired category) on the page which will indicate which category of posts you want to appear listed on the page. Easy as that! I did do a little bit of tweaking to the way the posts were to be displayed. But, it was easy to do. (I'm no programmer) In this manner I was able to create a menu of pages that took me to category listings. Best wishes, Sharon |
Thanks, that worked great, you can the results at http://www.shackn.com/blog
One small problem though - for some reason the "Post footer" is appearing beneath the text at the top of the page. How do I remove this footer beneath the sentence at the top of the page? |
1) which idea worked great
2) what is the footer? |
Sorry for being unclear - implementing the page2cat category worked well, after I worked out how to use the special tag [catlist=xx] ( and once I remembered to turn off the Static Page setting for blog posts in my Wordpress Admin!)
Now, if you visit www.shackn.com/blog, you will see there is a grey 'footer' beneath the first paragraph on this page. I would like to remove this footer, as it is only applicable to blog posts, and not to pages - that is my problemo! |
All times are GMT -6. The time now is 12:17 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.