Issues with Auto-Assigning Posts to Categories

Posted in: Newspaper
Post count: 5

Hello,

I am currently setting up a news website with various categories. One category is for posting news about my city, another for news about my state, and a third for international news. When I create a new post in WordPress, I want the post to appear on the homepage, which works fine. However, the problem I am encountering is ensuring that the post also appears automatically in the appropriate category and only in that category.

For example, if I have 20 posts, with 5 dedicated to my city and 15 to international news, I want each category to display only the relevant posts. I am struggling with setting this up correctly in WordPress so that when I create a post, it automatically appears in the designated category. Could you please help me with this?

Thank you!
Steph

Post count: 21065

Hello Steph!

In homepage, you should add a flex block with the latest and sort after a category. In the category template, you can use a flex block with the special filter current category.
Check the guide here: https://forum.tagdiv.com/flex-block-settings-guide/

Thank you!

Post count: 5

Thank you for your response, Bettina!

I’m not sure if I explained it correctly before. I have a menu in my header with categories like City, State, and International. When I click on these, the pages are empty. But, I want the relevant posts to show up when I click on these categories. For example, clicking on International should display the posts I assigned to the International category. This isn’t working yet.

Could it be that I didn’t understand your solution, or is my issue different? Sorry for the confusion.

Post count: 21065

Hello Steph!

That’s anything else here, then. This is achievable with this solution https://forum.tagdiv.com/page-menu/ or this one: https://forum.tagdiv.com/mega-menu/

Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.