paging is not working properly on news archives page [duplicate]

Using your custom get_posts() you are ignoring the $paged var. In this way, you’ll see always posts from the first page. According the Codex Page if you would like to alter the main query before it is executed, you can hook into it using pre_get_posts. function my_post_queries( $query ) { if (!is_admin() && $query->is_main_query()){ $query->set(‘posts_per_page’, … Read more

WordPress nested loop not working

Have you checked slug of ‘graphic-design’ CPT?. Maybe there are conflicts between page slug and CPT slug? You can’t really do what you are trying to do in the way you would like to do it. /graphic-design/ is registered with the custom post type as the custom post type permalink associated with that custom post … Read more

custom_post_type with umlaut in name

i now changed the navigation function to check for the url, since this one was right in all cases (i do have some other custom_post_types, that worked fine and still do). i just needed to strip the slashes from the url: add_filter(‘nav_menu_css_class’, ‘current_type_nav_class’, 10, 2 ); function current_type_nav_class($classes, $item) { $post_type = get_post_type(); if ($item->post_name … Read more