wordpress alchemy put custom metabox on certain page only

new WPAlchemy_MetaBox(array ( ‘id’ => ‘_custom_meta’, ‘title’ => ‘My Custom Meta’, ‘template’ => STYLESHEETPATH . ‘/custom/meta.php’, ‘exclude_template’ => ‘product.php’ )); the ‘exclude_template’ would work for excluding the one’s you didn’t want. new WPAlchemy_MetaBox(array ( ‘id’ => ‘_custom_meta’, ‘title’ => ‘My Custom Meta’, ‘template’ => STYLESHEETPATH . ‘/custom/meta.php’, ‘include_template’ => array(‘product.php’,’press.php’) // use an array for … Read more

display metabox on front end (my-metabox-class)

Nice to see people using my class 🙂 Anyway when you save a field in a repeater block , to access the data you need to use the repeater ID which in your case it’s $repeater_data = get_post_meta(get_the_ID(),$prefix.’re_’,true); and this returns an array of arrays with the id as key and value as value so … Read more

How to make a metabox that contains link categories?

Found the last bit. It was just a syntax error: <?php selected( $selected, “.$term_id”. ); ?> Should be… <?php selected( $selected, $term_id ); ?> Entire Function: function tf_book_deets_create(){ add_meta_box(‘tf_book_purchase’, ‘Book Purchase Links’, ‘tf_book_purchase’, ‘books’,’side’,’default’); } function tf_book_purchase (){ global $post; $custom = get_post_custom($post->ID); $link = $custom[“link”][0]; $selected = isset( $custom[‘link’] ) ? esc_attr( $custom[‘link’][0] ) … Read more

Checkbox in post not saving value

Change, echo ‘<input type=”checkbox” id=”movie_abc” name=”movie_abc” value=”true” />’; to… echo ‘<input type=”checkbox” id=”movie_abc” name=”movie_abc” value=”1″‘ . checked( $mydata , 1 ) . ‘/>’; …and let us know how you go. Update Try the following, echo ‘<input type=”checkbox” id=”movie_abc” name=”movie_abc” value=”1″‘, $mydata ? ‘ checked=”checked”‘ : ”, ‘/>’; Update 2 This is a duplicate question; I … Read more

Understanding WordPress’ post type support

When you register post type, you can choose what support you need. For Example: function codex_custom_init() { $args = array( ‘public’ => true, ‘label’ => ‘Books’, ‘supports’ => array( ‘title’, ‘editor’ ) ); register_post_type( ‘book’, $args ); } add_action( ‘init’, ‘codex_custom_init’ ) In this way you will create post type Books only with Title Option … Read more

Change the title of an Administration Panel

Look for add_meta_box or grep the Lucidbox directory for the metabox title– “Lucidpress Options”. It shouldn’t be too hard to find. As I don’t use that theme, or any other publicly released theme, I don’t know what else to say to you.