static page template - content above the loop
hello,
i can't find the page template for the atahualpa theme... i'm trying to create a page with normal static content (editable as every page through the menu) but add the latest posts after that content. when I use the built-in fuction 'Content ABOVE the LOOP' it is shown on every page. also i cannot use the if(is_home()) function because it is not the home page i want to do this change on. actually there are some pages i want to show static content and then latest posts from a certain category. |
well, you can create your page and then in the aboue the loop use 'is_page('42') - assuming 42 is the page ID. See http://codex.wordpress.org/Conditional_Tags#A_PAGE_Page for other conditional tags you can use
|
thanks for the reply
and what if i want to use it one different pages? i would be adding a lot of code into this function. is there another way? because i prefer using site templates I would need the template for a static page to add the posts loop |
Sure you can code a page template. Copy index.php and use it as the basis of your template. There are a could template in the Gold Forum - Tutorials section.
|
All times are GMT -6. The time now is 05:16 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.