you can try this to add custom content in the metabox :
add_action("add_meta_boxes", function (string $post_type, \WP_Post $post) {
// the post type can be tested here
$GLOBALS["wp_meta_boxes"]["page"]["side"]["low"]["postimagediv"]["callback"] = function ($post) {
// the original content to select the featured image
post_thumbnail_meta_box($post);
?>
<p>
custom content
</p>
<?php
};
}, 10, 2);
Related Posts:
- Make Custom Metaboxes Collapse by Default
- Check for and enforce unique value in user-entered custom meta field in WP Admin
- wordpress custom walker for thumbnails with custom menu
- Add ‘Right Now’ widget to custom dashboard
- Image Editor does not affect custom sizes!
- Hide upload image fields for the different media upload popups
- The Best Way to always load the newest version of 3rd party code
- I’m using add_meta_box() but want to include TinyMCE editor *and* Media Uploads for each box
- custom meta box for page default template
- Using custom image resizing script in a page
- Post thumbnails not working in my new install of WP 3.1 with Twenty Ten theme
- the_post_thumbnail() returns nothing even though has_post_thumbnail() returns true
- Data won’t save if metabox within conditional in admin. What am I missing?
- Featured Image If Else Condition
- Let author add field to metabox by pressing a button
- Meta Tags by Meta Box
- Showing Meta Box via Jquery Checkbox
- problem saving/ retrieving custom meta with wp alchemy metabox
- WordPress 3.1.2 Bug: add_theme_support() and video post format registering twice
- Select input in metabox not updated
- Multiple header style under meta box
- WordPress 5: including larger thumbnail image sizes in srcset than I have set
- Adding a drop-down (select tag) option under Menu Settings in WordPress Admin
- Change meta-box title- “LearnDash Quiz Settings” to “Quiz Settings”
- Embedded Options in a Custom Metabox
- How to add the option to choose between sizes for featured image within post editor?
- How to add custom Author Info Box to blog posts “only” and NOT custom post templates
- Upload image without resizing but insert in post with resizing
- issue with saving custom metaboxes fields
- after checked the checkbox in backend, dont show social link on frontend
- Change post template the proper way
- How to strip thumb from widget
- Get a different size of Image thumbnail while working with custom metabox
- Need Advice to Working with Custom Post Meta
- WordPress uploads directory. Featured Images storage
- Is there a flowchart for WordPress loading sequence?
- How do register_sidebar() and get_sidebar() work together?
- Is it possible to change the attributes of a registered style or script before it fires?
- how to change “published date” format on edit.php (Posts page)?
- How to change submit button value in comment from “Post Comment” to “Send”
- WordPress custom post types breaks permalink on theme reinstall
- Creating a searchable A-Z listing of hundreds of companies/services
- Show attribute description when filtering by that attribute
- Create a Custom menu item fetched by Product Categories and Sub Categories
- Customize in category page
- Multi-Site Plugin Activated (Not Network-Activated), What Happens?
- How to get WordPress to accept the tag in articles (or other alternatives)
- Add custom column to Users admin panel with Types user custom fields?
- How do I change the default admin color scheme in MP6
- woocommerce Add custom field set like billing fields
- Adding action to save_post, post needs to be saved twice for function to work
- Change headline text for post thumbnail meta box
- Calling a php file from a javascript file in wordpress
- 1 bit audio player
- Outputting posts from post id´s in variable
- Auto redirect after session expire, but only for one user
- Custom title, Bones theme
- How to get pages id in array in get_pages?
- Access post meta in future_to_publish function
- Javascript Solution Remove Specific Tag but leave the rest in a specific DIV
- How to create a completely private wordpress with multiple membership levels
- Why do posts disappear from admin after upgrading from WP 2.7.1 to 3.0.1?
- woocommerce_checkout_fields modifying existing billing_phone label created new field
- How to change the category url jusy show /category/%category_id% in wordpress?
- How can I display a PHP foreach loop’s answers by AJAX
- Child Theme with multiple css files
- How to host 2 subdomains as lookalike destinations under one master domain?
- “An automated WordPress update has failed to complete – please attempt the update again now”– But there is no .maintenance file
- How do I redirect a post url to a custom url?
- How to customize
- Modify files without losing customization after updates
- Determine if action was executed in functions
- Extending core class in plugin
- Is it possible to make wordpress LMS
- Saving contact form 7 data into custom Table
- Hiding Short Description in Shop Page, WooCommerce
- Media Upload not working after hiding some elements from functions.php
- How to add WordPress JS Script Links
- Customizing the gallery of the post correctly
- Will WordPress updates remove Gutenberg Additional Classes?
- WP_Query – sort the results by meta value custom attribute wocoomerce
- How can I create a Custom Page? (not a page template!!)
- Client viewing before deployment
- How to have different background image based on post category
- Run a welcome tour after multisite creation?
- Custom login doesn’t stay
- How to Password Protect whole site except for some subdirectories
- Custom dropdown search form that allows users to select option B based from Option 1
- Smarter Document Management links between three WordPress sites sought
- Header image doesn’t show up on page
- How to get name and email value from a custom form and add it to campaign monitor subscriber list?
- Custom Link In WordPress Media “Attachment Details” Upload Screen
- “Static” pages within a theme
- Assign classes to Custom fields
- Custom WordPress SQL Query 4 posts per custom taxonomy
- Changes to code not displaying
- Permalink Listing WordPress
- Has the table name in SQL for WordPress changed from WP_posts to WPCS_post?
- Multi color post title by using custom javascript inside the gutenberg editor?
- Add custom styles to the Raft theme