Questions about multiple category

Posted in: Newspaper
Post count: 51

1- as you can see here https://ibb.co/5stDKgX in some of my post, i’ve assigned multiple category. How can i choose which category to display in the square I highlighted? If i add sub category for example and i want to show in that box this istead the primary category. I currently have no control over which to bring up. For example here https://ibb.co/F48BtxW
‘IN PRIMO PIANO’ is just a ‘featured’ section. The article is also in ‘Rimini’ category. I want to show Rimini here, not ‘IN PRIMO PIANO’. Another example could be the sub categories. If under ‘Sport’ i want to add sub category with the cities they refer to. If the word ‘sport’ remains in the box, people do not understand to which city the news is reported.

2- i want to add one more ‘featured’ category to the website (‘in primo piano). I’ve add this category https://labussolanews.com/categoria/in-primo-piano/ which is a kind of your featured section but your featured hide the “category” in the links like https://labussolanews.com/featured/. Mine instead comes https://labussolanews.com/categoria/in-primo-piano/ with “categoria” word. Can it be removed? This is the right method for create another featured category?

3- Can i remove every links and archive page to this category? i don’t want that people can go inside this 2 featured category because it is only an affix and not a category.

4- this need also derives from the fact that I would like to do something like this https://ibb.co/f8qMP5H. When someone clicks on the sport category, I would like to highlight in some way the city to which a particular article refers. I don’t know if this can be done with sub-categories or in some other way.

Post count: 20688

Hi,

1. The category tag will always display the primary category. You can choose a primary category for each post, that one will be displayed. Here is a guide if needed
https://forum.tagdiv.com/primary-category/
If you don’t set a primary category, the first one alphabetically from the categories the post has will be picked.

2. Seems to work like this as well – https://labussolanews.com/in-primo-piano/ if you want to remove the category base permanently, there is a setting in Yoast for it
http://prntscr.com/n5qd6q

3. You could hide it in the per category settings – http://prntscr.com/n5qgxz this will apply to post and category pages. But it may appear in the modules if it’s a primary category or the single category of posts. The category tag can be disabled for modules, but in general – http://prntscr.com/n5qizx and not for a specific category.

4. That looks like the primary category from the theme, a post can have multiple categories, but only one can be primary. This will represent it in the modules. You can set the one you want for each post.

Thanks

Post count: 51

– I’ll explain better. I really don’t want to create sub-categories. I would like to start from the main category as “sport” and highlight the location which it refers. Maybe a text near date? like that https://ibb.co/ZMnXt61.
It is possibile to do something like that without using confusing sub-categories?

– It is possible to remove the ability to click on labels here? https://ibb.co/55Tz6bq.
I wish people could only click on the article and not on the category

  • This reply was modified 7 years by axehorde.
Post count: 20688

You could use some CSS to remove the option to click on category labels in modules. If you want it for a specific block like this one – http://prntscr.com/n6qixz
First set a class to the block, for example – http://prntscr.com/n6qj7x
Then use a CSS like this

.myclass .td-post-category {
pointer-events: none;
}

Then the category tag in that specific block will not be clickable anymore, you could use this solution.

The category tag displayed in modules is the primary category, only one category is displayed there, you can choose which one it will be.
In that screenshot you mention a text near the date, that is supposed to appear in the post page? it would have to be dynamic for each post I believe, not the same text for each post, so adding text column or text element in the cloud template would not be a way to do it unless making multiple templates each with it’s own text.

Post count: 51

Yes, in the post page and also in the blocks. It would be very useful for post.
Basically a new field where you can enter the place of reference city in each post. It’s possible to do it? With a plugin maybe?

I really need to highlight the city to which each post belongs. Here in Italy there are many cities and I can’t create a sub-category for each one. Also other archives pages would be created and i really don’t want it.

Take a look here https://ibb.co/BrzS3kY

Post count: 20688

Maybe with custom fields you could display additional information in the modules, like this example with the advanced custom field plugin
https://forum.tagdiv.com/topic/add-additional-fields-to-posts-in-category-grid/
But in cloud post templates I remember trying to display these fields by shortcode, but it did not work.

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