fix slugs containing invalid characters?
fix slugs containing invalid characters?
fix slugs containing invalid characters?
So I was digging a lot deeper into my child theme and found that I was actually the culprit… At some point early on I had written a function using pre_get_posts to force a custom sort order on the team custom post type. Here’s what I found hiding out: add_action(‘pre_get_posts’, ‘gpc_agent_pre_get_posts’); function gpc_agent_pre_get_posts( $query ) … Read more
WordPress does this for you. You shouldn’t need a custom Page template or custom query and pagination. Just set ‘has_archive’ to true when registering the post type. Then you automatically get /episodes and /episodes/page/X. Then you just need to create archive-afleveringen.php for the template, and in that template use the functions for the main query: … Read more
Subcategory Page 404ing
if you want to redirect a few posts to 404 page then you can use use the following snippet in functions.php of your child theme. add_action( ‘template_redirect’, ‘post_redirect_func’ ); function post_redirect_func(){ global $post; $redirect_url = get_template_part( 404 ); // you can write here the page to redirect if this don’t work for you if ($post->ID … Read more
1) In settings>Permalinks save again the permalinks and check again. 2) There is some custom permalinks plugin installed I see from the screenshot you attached, please check there and try to save the permalinks.
Multisite,half the way
WordPress media library don’t load most of the photos in library
Manage 404 page over wordpress backend?
Param causing 404