Hello we’re currently investigating the possible use of your newspaper theme.
We’ve added about 25 article and have tried to divide them over several categories in the homepage.
you can view our progress so far at http://wp.bgmagazine.nl/
What we would like to achieve is a structure with blocks named Arbo en verzuim, Duurzame inzetbaarheid and Preventie and so on. That we have achieved.
However we have several post type, such as Article, opinion, news, event, Jobs etc.
What we would like to achieve is to have these post types as subcategories for every block, as a horizontal submenu. So every block would have all articles of eg. category Arbo en verzuim, and have a horizontal menu in that block displaying all article, columns, events for that category ‘Arbo and Verzuim’
We thought the Ajax drop down would do that trick. However if we use the ajax dropdown and use category ID, it is displaying all articles of all categories instead of articles only from that specific maincategory.
Hello,
The ajax filter shows only posts from the selected category. However if a post has multiple categories set to it it will appear everywhere one of it’s categories is specified.
Posts with a single category: http://screencast.com/t/ZUYp9R8Nl
Posts with multiple categories: http://screencast.com/t/kkSreUl5
You can read more on ajax filter in our documentation: https://forum.tagdiv.com/block-settings-tutorial/
I hope this helps.
Thank you!
Hi Bogdan,
Thanks for your prompt reply. So what we want is not gonna work I think? It’s not clear from your answer.
I’ve read the documentation already but can’t figure out how to do this. Again we have content types we would like to display for specific categories.
Hi,
I’m not quite sure what it is you want to achieve.
The filter works like this: when you set up your block you select a category to be displayed first, when you load the page: http://screencast.com/t/DikddgBl. The ajax filter bring more categories to the block in the form of buttons you can click so the block will display posts from that specific category. You can select which categories to display by using the category ID’s separated by commas: http://screencast.com/t/i4pNK40I
You can get the category id’s from here: http://screencast.com/t/FEo6bFN4
Unfortunately you cannot filter by post type but there is another option to filter by tag slug: http://screencast.com/t/nBVCir7N so you give your posts the tag slug named as the post type and you can have a custom name appear on the ajax menu instead of the category.
If this is not what you mean, please provide more details so i can understand your request better.
Thank you!
Hi,
Here’s some more detailed information. please have a look at the site as it is now set up: http://wp.bgmagazine.nl/
We have several categories (arbo en verzuim, Duurzame inzetbaarheid and so on these being block 1 en 2 on the homepage). On the right side of every block you see a submenu that we created with ajax (Labels are ‘Artikel” article), Nieuws (news) and Opinie (blogpost).
These will display all post from that specific category. So for the first block it’s only from category ‘Arbo en verzuim’. This could be articles, blogpost, events, jobs etc.)
However the block Arbo en verzuim should only display the specific articles, blogpost, events etc from that specific category, so in the first block it should display all posts, events, jobs only from category ‘Arbo en verzuim’. If a user clicks on a submenu eg Artikel (article) all the articles (or number we’ve set up) of that category should be shown in that Block.
Hi,
You can create subcategories for each parent category that you set for a block and used the subcategories IDs for ajax – http://screencast.com/t/ckyR5EIfcXfa – http://screencast.com/t/irOcQ4d1eK9 – http://screencast.com/t/kaKzDZkYDxwq
Result – http://screencast.com/t/h3dRsPoE
Thanks!