How to Add CSS Styling to Custom WordPress Metabox

As a theme or plugin developer, there can be a chance where you want to add css styles to your custom metabox. Here I will show you the two ways to add CSS styling to custom WordPress Metabox. But before that let’s first create a custom metabox and add it to the posts. Copy the […]

How to Add Metabox in WordPress Plugin

If you are working on a WordPress plugin then there can be a chance where you need to add a custom metabox to the post, page, or custom post types. So, here I will create a WordPress plugin that will add an option in WordPress posts to set reading time for each post and display […]

How to Add Multiple Custom Metaboxes in WordPress

The following code snippet will help you to add multiple custom meta boxes in WordPress. Copy the code given below and add this code into your theme’s functions.php file or if you want to add meta boxes for your plugin then add this into your plugin-specific file. How to Add Metabox with Input Field & […]

How to Add Metabox | Save & Get Meta box Value in WordPress

Meta boxes in WordPress are the draggable boxes that exist in WordPress admin. It contains form fields to set information about the post, page, custom post type, terms, users, comments etc. Meta box can also be used to display information like in the WordPress dashboard. By default, WordPress comes with some metaboxes that exist in […]

How to Add WordPress Custom Metabox with Multiple Fields

To add WordPress custom meta box with multiple fields, first I will create a meta box with multiple fields. So in this case, I will add text, select, textarea, radio and checkbox input fields in my custom WordPress meta box, and then will save the value of these fields in the database and show you […]

How to Use WYSIWYG or WP Editor in WordPress Custom Meta box

Want to learn about how to add and use WYSIWYG or WP editor with your custom WordPress metabox, then trust me, it’s super easy. To add wp editor or wysiwyg editor, WordPress provides a function wp_editor() with some parameters and their attributes. wp_editor($content, $editor_id, $settings); $content – this is a string and required parameter, this […]

How to Enqueue Script & Style in WordPress Admin & Login

Are you working with custom theme or plugin?, then there can be a chance where you need to enqueue scripts and styles in WordPress admin pages or any specific admin page or may be login page. To enqueue scripts and styles in WordPress admin pages and login pages, code snippets are given below. You can […]

How to Create Audio & Video Shortcode in WordPress

Adding an audio file or video file in WordPress is pretty easy, you can do that simply by adding media from the WordPress editor but here I will show you how to create audio and video shortcodes in WordPress. To create an audio shortcode and video shortcode, code snippets given below. Just add them within […]

How to Create Menu Shortcode Without Plugin in WordPress

Bhuvi: Hey… I am looking for something to display menus that I choose on the WordPress page or post on the fly…is it possible?. DIWP: Yup Man…of Course. You can do that by just creating a simple shortcode for the menu and then just add that shortcode in the page or post where you want […]

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top