How To

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 Metabox | Save & Get Meta box Value in WordPress Read More »

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 Use WYSIWYG or WP Editor in WordPress Custom Meta box Read More »

How to Enqueue Script and Style Only If Page Using Shortcode

Do you want to enqueue script and stylesheet only if the page uses a particular shortcode?. Here are the 3 methods with different scenarios to do that easily. Let’s understand them one by one. For all these 3 methods, Let’s assume 3 different cases. One for each method to get the idea of enqueuing only …

How to Enqueue Script and Style Only If Page Using Shortcode Read More »

How to Enqueue Scripts & Styles Only When Shortcode Exists

If you are working on a custom WordPress theme or integrating any plugin with your custom theme then there can be a chance where you just want to include javascript or CSS files only if a particular shortcode exists in your WordPress website. To check shortcode existence WordPress gives a function shortcode_exists($shortcode_tag). By using this …

How to Enqueue Scripts & Styles Only When Shortcode Exists Read More »