New answers tagged

1

nopaging does not fetch all posts, it just tells WordPress not to bother figuring out stuff like how many pages there are. What you actually wanted was not to disable pagination, that's just a solution to your problem that you asked about. You should ask about your problem instead, aka how to show all posts at once. Showing all posts at once can be dangerous,...


1

You need to add the actual page title back in. Try this: add_filter( 'get_the_archive_title', function ( $title ) { if( is_category() ) { $title = 'Department: '. single_cat_title( '', false ); } return $title; });


Top 50 recent answers are included