Custom Sortable Meta Boxes
Custom Sortable Meta Boxes
Custom Sortable Meta Boxes
The problem is with your js. When you click on first video post. It adds video code to the iframe i.e modal. When you click on second video, it doesn’t add video code related to second post to iframe(modal). Confusing? Refresh your page and click on 2nd or 3rd video. It will show proper. Now … Read more
Resetting admin post form on JS validation fail
It looks like you are trying to build a way to display a group of meta fields for your custom post type. Using get_post_custom you can fetch all the custom post meta for a single post in 1 request. Then using a combination of looping you can build your output as you see fit. A … Read more
cannot grab post meta from extended Walker_Category class properly
Try chaining the action hook for first function from: add_action( ‘admin_menu’, ‘true_add_a_metabox’ ); to below: add_action( ‘add_meta_boxes’, ‘true_add_a_metabox’ ); Also make sure that ‘Forum Discussion URL’ under ‘Screen options’ is checked to ensure it displays on edit post screen 🙂
I managed to solve it. The problem was in using a custom post-type with Metabox.php / MediaAccess.php (both from WPAlchemy class) Supposedly you can use custom post-types with WPAlchemy since, when instantiating a WPAlchemy_MetaBox object you can pass some optional parameters to enable that kind of costumization. Like this: $mb = $my_custom_metabox = new WPAlchemy_MetaBox(array … Read more
Undefined index error in custom post metabox
You’re update function asks for a request parameter named meta_box_nonce (which is by the way a bad name) but your meta box template does not provide such a field. It should work if you add the following line right at the end of your function author_book_meta_box(): wp_nonce_field( ‘author_book_meta_box_nonce’, ‘meta_box_nonce’ ); Please consider to prefix the … Read more
Is there a way to display metabox in frontend? How?