WordPress
October 19, 2021

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.

Related Post


WordPress Forgot Password Form Without Plugin

Are you need simple Forgot Password form without plugin for your WordPress website? Yes, Then i have created [wc_forgot_pwd_form] shortcode with quick simple code. So you can put Forgot Password form anywhere like in Pages, Posts and Widget etc… Therefore you just need to put [wc_forgot_pwd_form] shortcode where you need login form. So you need […]

Create Custom Template for Child Categories in WordPress

Create different template only for child category put following code in your current themes functions.php file

How to Add Excerpts to Your Pages in WordPress

you will need to add the following code to your current themes functions.php file

How to Include JavaScript & CSS in WordPress

When we are customizing any wordpress theme using child theme at some time we need to enqueue any external CSS or JavaScript in site. In this case we can best way to include css and JavaScript in functions.php file. We can enqueue the JavaScript or CSS using wp_enqueue_script() or wp_enqueue_style() functions. CSS You can enqueue […]

WooCommerce Redirect to Custom Thank you Page

The below code allows you to redirect to a custom page after the user has successfully completed a purchase when using WooCommerce plugin. Simply add the below code to the active child theme function.php and replace the URL in the function wp_redirect() to the desired page.

How to Create Custom Taxonomies in WordPress

Custom Taxonomies are same like categories and tags. WordPress allows developers to create Custom Taxonomies. Custom Taxonomies are useful when one wants to create distinct naming systems and make them accessible behind the scenes in a predictable way. Create Custom Taxonomies by code. Add below Code in function.php file of your active child theme (or […]


Leave a Reply

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