Articles of metabox

Generating Custom Post Type list, within admin of another custom post type

Is there a way to generate a custom post type list within the admin of another custom post type and use that information as meta data? For example, there is one custom_post_type named “Attorney” and another named “PracticeArea”. There are approximately 20 PracticeArea posts. On the admin for the Attorney post, a “PracticeArea” metabox would […]

Create Meta boxes dynamically

I followed and created a meta box using all code from this question here: Create more Meta Boxes as needed Basically only two fields are created when you click on Add track button: Song title field – Track number field But I need something like that: Add album name button – add a field for […]

How to Display Custom Meta Box only on Specific Page Template

I have generated a custom meta box using (https://jeremyhixon.com/tool/wordpress-meta-box-generator/), how can i display this meta box on a specific page? e.g. page-about.php function history_box_get_meta( $value ) { global $post; $field = get_post_meta( $post->ID, $value, true ); if ( ! empty( $field ) ) { return is_array( $field ) ? stripslashes_deep( $field ) : stripslashes( wp_kses_decode_entities( […]

Enable Shortcodes in Meta Boxes

I have textarea metabox and I want to use shortcodes in this textarea . But shortcodes don’t work in output. I try with ckeditor and wordpress editor with wp_editor but shortcodes not working . Help me to enable shortcodes in meta boxes . Thanks and sry for my bad en .

Hooks for the new PressThis Bookmarklet

When I find content worth spreading I should know more than text contents and image URLs. I need some more copyright informations, the licence, author name, image title, the date published etc. In my site I use hundreds of Categories and Tags. So in the WP backend Editor I turned the sidebar into new easy […]

post metabox media upload js code advice

After reading lots of tutorials + stackoverflow questions, I was able to create my own metaboxes audio metabox <label for=”field_audio_upload”>Upload audio</label> <input type=”text” id=”field_audio_upload” name=”field_audio_upload” value=”<?php echo esc_attr( $upload_audio ); ?>” size=”25″ /> <input id=”field_audio_upload_button” type=”button” value=”Browse” /> video metabox <label for=”field_video_upload”>Upload Video</label> <input type=”text” id=”field_video_upload” type=”file” name=”field_video_upload” value=”<?php echo esc_attr( $upload_video ); ?>” size=”25″ […]

CMB2 Post Search Field displays/repeats initial post if left empty

I’m using CMB2 and the CMB2 Post Search Field to create a one-to-many link between different types of posts (including custom post types), with the post search field in a repeatable metabox group, so that each connected post has some text to provide context to the connection. I’ve got this working okay – except if […]

How modify comments metabox on post edit screen in WordPress?

I search a solution for custom the comment’s html on post edit screen when i click to the button “add new comment”. I want to add a ACF field in the form. The codex not explain a solution… Or an idee ?

Build WordPress metabox inside another metabox

I am building a plugin and have created a metabox below the main content box. Inside of this, I wish to have additional metaboxes for each block of metadata. So let’s say we had 3 pieces of information for each block (i.e. Person) like this: Person: – Age – Sex – Location Let’s say we […]

Excerpts – Formatting.

I’ve a problem with excerpts for the last couple of days. I’ve got a theme from alleycat called the saint, now they had just stopped trading, but I’m really stuck. On the portfolio page, I have an excerpt but WordPress takes away formatting right? So I can’t add in any paragraphs, which is all I […]