bswb97
08-01-2012, 05:38 AM
I'm fairly experienced with CSS but pretty new to PHP, so hopefully this will be easy. I'm trying to build a WP site with a Custom Post Type and Custom Fields. I want to put some text around the Custom Field as well as style it.
So this is what I want it to do:
IF it's the Custom Post Type "Book"
(I've found that this works:)
<?php if (get_post_type() == 'books' )
then display the text "BLA BLA BLA" followed by the value for the Custom Field called tagline.
I know it'll be easy once I understand the mechanic behind it but I'm getting lost in the different guides I'm reading. They're telling me different things.
Thanks for your help!
So this is what I want it to do:
IF it's the Custom Post Type "Book"
(I've found that this works:)
<?php if (get_post_type() == 'books' )
then display the text "BLA BLA BLA" followed by the value for the Custom Field called tagline.
I know it'll be easy once I understand the mechanic behind it but I'm getting lost in the different guides I'm reading. They're telling me different things.
Thanks for your help!