Hide a specific category in admin All Posts page (WordPress)

If we look at the official documentation for WP_Query: https://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters Show posts associated with certain categories. cat (int) – use category id. category_name (string) – use category slug. category__and (array) – use category id. category__in (array) – use category id. category__not_in (array) – use category id. The problem is that cat demands a category ID, … Read more

Error in custom php function doesn’t exist

You get an error because it’s looking for function named as set_default_page_template while you seems to have function named set_page_template_default. I’m not sure you either don’t have a function named set_default_page_template or you later renamed it. but that’s the error. WP cannot find your hook because it doesn’t exist. you should either rename your set_default_page_template … Read more