Categories Help and video uploads

How you can remove Categories: part you will need to add the code below at the bottom of your theme’s functions.php file: add_filter( ‘get_the_archive_title’, function ($title) { if ( is_category() ) { $title = single_cat_title( ”, false ); } return $title; }); And when it comes to uploading videos and plans you have to contact … Read more

restrict category to only logged in User

Inside while loop of single.php you can put condition like this if(in_category(‘Catetory_slug’)){ //Specifying category whom we don’t want to see by no logged in users if(is_user_logged_in()){ //Checking if user logged in or not //code inside single.php }else{ Echo “You need to login to view this post.”; //message for no logged in users }} This can … Read more

How to create template for children category?

I have found answer, based on this post For cases when someone wants to have different template for child category. For example, if you have categories ordered like this: continent->country->city. And for example, you need a different template for city. First, we look if city have a children, if not, we call city template, the … Read more

Balance Tags to the_content Words Length

You better call it before returning, inside technig_content() so that it’s return value is always balanced. So, the last two lines of your function would become: $content = str_replace(‘]]>’, ‘]]>’, $content); $content = balanceTags( $content ); return $content; Having said that, I don’t think it’s a good way of handling your output, since you don’t … Read more