Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   static page template - content above the loop (http://forum.bytesforall.com/showthread.php?t=13139)

nano91 Mar 4, 2011 08:36 AM

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.

juggledad Mar 4, 2011 08:51 AM

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

nano91 Mar 4, 2011 09:16 AM

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

juggledad Mar 4, 2011 10:50 AM

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 06:42 AM.

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