WordPress
February 2, 2021

how to Upload WordPress Custom Meta Box Image

Hi, here i implement multiple image upload custom fields (WordPress custom meta box image upload
) to page post type if you want it for another post type just change post type name.

Add the following code to your current themes function.php file. Go to your pages from WordPress admin and check that multiple image upload custom field is added to each page.

Use the below code to show meta box values from anywhere

 

Check here More Solution: https://codexcoach.com/

Related Post


Set time Zone by Country

Include the following code file to your current themes functions.php file. Users can see all time by their country timezone wise.

Disable RSS Feed in WordPress

By default WordPress generates RSS feeds for all post types, Taxonomies, Comments and etc.. that are built in, such as: http://example.com/feed/ http://example.com/feed/rss/ http://example.com/feed/rss2/ http://example.com/feed/rdf/ http://example.com/feed/atom/ There are two ways to disable RSS feed like using plugins and with custom codes. You can use many free plugins for disable RSS feeds. But let we disable RSS […]

Create Nested Repeater Meta Box in WordPress

Nested Repeatable Custom Fields in a Meta box Creating a “nested repeater meta-box” without a Plugin in WordPress. Add below code in your functions.php file (this file is located in your theme folder): Use below code to show metabox values from anywhere

Featured image metabox not appearing on custom post edit page

Sometimes theme not support featured image metabox, when put following code in your current themes functions.php file. function my_custom_theme_setup() { add_theme_support( ‘menus’ ); add_theme_support( ‘post-thumbnails’ ); // other options } add_action( ‘after_setup_theme’, ‘my_custom_theme_setup’ ); Now featured image metabox support in custom post edit page.

How to Load More Post With Ajax in WordPress

Create a load more button to show additional posts or custom post types using AJAX following code in your current theme. 1. Set load more button in your post loop and pass paged parameter in post argument. Load More This will display two post per page. 2. Then you have to add the following code […]

How to Change the Order of Comment Form Fields in WordPress

If you want to put the comment field after all other fields are loaded. Add the following code in your current themes functions.php file.


Leave a Reply

Your email address will not be published. Required fields are marked *