Answer the question
In order to leave comments, you need to log in
How to display all posts in one category?
Good afternoon!
Please help to solve this issue: the site has a heading (one category - "our works"), and in it sub-headings (subcategories) in the amount of 6 pieces. In each sub-heading (subcategory) there are entries corresponding to it, respectively.
In the sidebar placed on the left, these 6 sub-headings (sub-categories) are indicated as a menu, when you click on each one, I would like to see on the right side ALL entries related to the specified sub-heading. And I have only one in principle visible in each ... Please tell me how to win this? how to display all posts of the specified subcategory.
I so suspect that I don't have a cycle on the page. But I don't know how to write it myself. After all, it is necessary to make sure that the main file is one, and the code works for all subcategories... you can no longer contact by ID...
I will be grateful in advance for your help.
Answer the question
In order to leave comments, you need to log in
Right sidebar? Or is the sidebar on the left, but should it be displayed in the "body of the site"?
If you display using the menu settings by adding headings, then it makes sense to look at Settings-> Reading-> Show
no more on blog pages - put the required number of entries. And see\install the pagination plugin. This is the easiest way. There may be more solutions - up to writing a plugin with ajax output
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question