I don’t know why categories are showing below post

I assumed that your are using undersocres starter theme to build your theme and you probably copied the code from template-tags.php inside inc folder in your theme. Now do this: keep this code inside template-tags.php function category_renown() { $categories = get_the_category_list( esc_html__( ‘ ‘, ‘openblogger’ )); if ( $categories ) { printf( ‘<span class=”catu-links”>’ . … Read more

Replace “content-area” of themes 404 page with plugin?

According to the Template Page hierarchy, https://developer.wordpress.org/files/2014/10/wp-hierarchy.png the only template page WP will load is 404.php But, you might try this in your mu-plugins: //Some function to check database to see if this URL should exist if ( ! checkIfPageExists( $_SERVER[‘REQUEST_URI’] ) ) { //Set 404 Status status_header( “404” ); get_header(); //do your custom 404 … Read more

Having issue on Loading Meta Data From CSV to CPT

Your metas need to be passed to wp_insert_post() as an array like so: // Insert the post into the database $post[“id”] = wp_insert_post( array( “post_title” => $post[“title”], “post_type” => $cpt[“custom-post-type”], “meta_input” => array( “custom-field-1” =>$cpt[“custom-field-1”], “custom-field-2” =>$cpt[“custom-field-2”], ) “post_status” => “publish” )); https://developer.wordpress.org/reference/functions/wp_insert_post/#parameters

How to prevent clicking on posts

This may help, add the following code to WordPress Dashboard > Appearance > Customize > Additional CSS : .portfolio_slide_loop.wow.fadeInUp { pointer-events: none; } If you need something more convenient, then use jQuery, add the following to in your footer.php just before the tag. : <script> jQuery(document).ready(function($){ $(‘.portfolio_slide_loop.wow.fadeInUp’).contents().unwrap(); }); </script> If you still have problem in … Read more