Answer the question
In order to leave comments, you need to log in
How to display all posts of all categories on a common page, and display only your own posts in child categories?
Hello everyone, please help to solve the problem of displaying posts
All
categories with posts are displayed by the archive.php template
At site.ru/category/rubrika-all
if($_SERVER['SCRIPT_URL'] = '/category/rubrika-all') {
$h1Tag = 'Все посты';
query_posts('cat=97&posts_per_page=50');
}
$_SERVER['SCRIPT_URL']
Answer the question
In order to leave comments, you need to log in
https://wp-kama.ru/function/wp_query
and take the id of the term on or slug and insert it into tax_query
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question