blocks: showing posts using both category AND tags

Posted in: Newsmag
Post count: 47

Hi
We have categories for 2 different lines of posts: News and Long stories.
Each of these categories have sub cats, that drill down the scopes.

We have a home page with blocks that shows with different blocks news and various subcategories of stories.

Now we want to build several pages similar to the hoe but filtered for specific tags (we talk about football teams, we tag the posts with the football club name).

Can a block show posts using categories AND tags (intersection) instead of union like it seems to be now?
Thanks

Post count: 6600

Hi,

The theme dose have a tag filter which you can use to filter your posts after specific tags on blocks/sliders and this is not bound in anyway by the category filter, the posts that have that tag will be called: http://screencast.com/t/WvGwU06DTA
Hope this helps!

Thanks

Post count: 47

The question is if the block attributes category and tag slug are used in OR or AND to filter the results. I need a AND…

Post count: 7909

Hi,

The posts from blocks can be filtered by category OR by tag and the default one is filter by category – http://screencast.com/t/rPqwwPT0 You would need custom modification for this and it is not an easy task I suggest to hire a professional as we cannot provide custom work at this time as we work on updates/development and support. Sorry for this!

Thanks!

Post count: 47

Thanks. What I’m actually experiencing is the following:
1-choosen block11
2-filled in “Category filter:” – value “NEWS”
3-filled in “Filter by tag slug:” – value “juventus”

It seems it actually works as I expect: I see only posts categorized as “NEWS” AND tagged as “juventus”.

Can be this behavior working on block 11 only ? (I think big grid work same manner)

Fabio

Post count: 7909

Hi,

Sorry for misunderstanding! Now I see what you are trying to do. Normally this will work for all blocks that have this filter options in setting…this filter is general for all tagdiv blocks from td_block.php.

Thanks!

Post count: 10

Hi,

Just tested what Fabio wrote but it doesn’t work for me. Block 19, Category Filter with one category and some tag slugs in the right field. The block is empty on my homepage…

Post count: 6535

Hi

Please make sure that you have some posts which match with your category/tag/slug filter. As a post be displayed in block must match all filters that you have set. For example if you set Category filter: A, Tag filter B, the post must be in category A and also have the B tag in order to be displayed in block.

Hope this help.
Thanks!

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