Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
08-01-2012, 05:38 AM #1
- Join Date
- Mar 2012
- Thanked 0 Times in 0 Posts
PHP If statements & WP Custom Fields
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' )
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!