Xavier Jones
asked 10 years ago

If I place content into a subdirectory like google.com/hello/bye it also shows up in google.com/hello and I don’t want it to. I only want it to show up on google.com/hello/bye. How can I do this?

1 Answers
answered 10 years ago

Hello Xavier ! 
To resolve this issue please follow my instruction here:
1. Open custom.php file in your site / wp-content / themes / your theme / lib / custom.php
2. Add following code to line 345 

if ( $query->query['cat'] && $query->is_main_query() ) {
$query->set( 'category__in', $query->query['cat'] );

Hope this helps!

Powered by DW Question & Answer Pro