Hi! Iv’e downloaded this plugin. What im trying to achive here is to get a field value to set the class of my header, but it just wont work.. Im probably doing something really easy wrong, but im not to familiar with php.. Here’s a bit of code, i think it’ll explain what i want to do.
<div id="header" class="<?php echo c2c_get_post_custom( $field ) ?>">
What ive done this far is to create a custom field called “ommig” with the value “ommig”, then put [custom_field field=”ommig” /] in the editorbox, and the code above in the page.php. Please explain if you know what im doing wrong :c
- The topic ‘Can’t get custom field values to work!’ is closed to new replies.