Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

metabox

Adding text box with add_meta_box

Adding text box with add_meta_box

Categories custom-field Tags custom-field, input, metabox

Set class if a meta value is set within post archive

i suggest you check the the value of $checkbox by either checking checkbox under meta_key column in wp_postmeta or *your prefix_postmeta table in your database or simply do var_dump($checkbox); for testing if its 0 or null or an empty string or so then your if condition will not return true and $has_video will not be … Read more

Categories custom-field Tags custom-field, meta-value, metabox, post-class, post-meta

Show a custom post title in another custom post type in Meta box

You need to get all the titles of CPT (Custom Post Type) A, and loop through them in the second CPT in a metabox of CPT B. Example : $my_titles = array( ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1, ‘order’ => ‘ASC’, ‘post_type’ => ‘my_custom_post_type’ // get the type of your CPT ); Now in your … Read more

Categories custom-post-types Tags custom-post-types, metabox, plugin-development

Taxonomy custom check box meta field not getting saved

Taxonomy custom check box meta field not getting saved

Categories categories Tags categories, custom-taxonomy, metabox

WordPress default post categories meta box widget

add_filter( ‘rank_math/admin/disable_primary_term’, ‘__return_true’ ); found the solution!

Categories plugins Tags categories, functions, metabox, plugins

how can I make this metabox area

how can I make this metabox area

Categories metabox Tags metabox

How to improve my non-unique metadata MySQL entries?

How would you save such a repetitive data pair inside MySQL? As separate key/value pairs, which is what you have already done. The only situation I would reconsider this, is if you need to filter or search for restock posts via these IDs. If that is the case then I would use a private/hidden taxonomy … Read more

Categories custom-field Tags custom-field, meta-query, metabox, mysql, post-meta

Multiple header style under meta box

Multiple header style under meta box

Categories customization Tags customization, metabox

Move the metaboxes to the very top of post editor

Found the solution 🙂 add_action(‘edit_form_after_title’, function() { global $post, $wp_meta_boxes; do_meta_boxes(get_current_screen(), ‘advanced’, $post); unset($wp_meta_boxes[get_post_type($post)][‘advanced’]); }); add_action(‘add_meta_boxes’, ‘generator_api’);

Categories custom-field Tags custom-field, metabox

Post and Pages section inside WordPress admin are completely blank

Post and Pages section inside WordPress admin are completely blank

Categories metabox Tags metabox, save-post
Older posts
Newer posts
← Previous Page1 … Page49 Page50 Page51 … Page169 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress