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)
-   -   Need help with custom fields. (http://forum.bytesforall.com/showthread.php?t=5962)

webservant7 Feb 20, 2010 01:36 PM

Need help with custom fields.
 
I'm a complete noob at this and need help with how custom fields are to be used. I have been able to create my custom fields and I've edited the Loop under the "Style and edit center column" section to get them to show up in my posts but they are also showing up on my front page and I don't want them there. I only want them to show up on my posts. Am I putting them in the wrong place? Do I need to add some PHP logic to get them to only show up on my posts?

btw, I'm using WordPress 2.9.1 and Atahualpa 3.4.5.1.

Thank you!

webservant7 Feb 20, 2010 02:43 PM

OK, I was able to get the custom fields to not show up at all on the front page by adding this php code:

Code:


<?php if ( is_single() ) { ?>

My custom code and custom fields.

<?php } ?>

But now I need to clarify something. I have the front page configured in Atahualpa options to show the most recent full post and only the excerpts of any older posts. I want the custom fields to show up in that most recent (full) post but not to show up in the older posts with their excerpts. What code do I need to add to do this?

I assume it is some sort of "OR" statement but being a noob I could use some help figuring it out.

Thank you!


All times are GMT -6. The time now is 09:40 AM.

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