Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

tonyzeoli on "Exclude categories and set primary category for post on homepage"

$
0
0

Hi,

We're trying to solve an issue for a client project.

The business rules are the that the editor can publish a post to multiple categories, but only display one of those categories in a flag on the homepage and limit the homepage to only publishing one of those categories in the loop.

For example, I may have a post that I categorize as News, Sports, Video, I want the post to show up in the loop under News, Sports, or Video, but for home, I might only want the category of Sports to display in the category flag layered over the featured image.

I understand there is an Exclude Categories function in the WordPress API, but I'm not sure that will work.

Do we build a meta box tool in the admin sidebar that says "Hide Categories from Home" after they are selected and appear in the Category meta box then we can AJAX them into the HIde Categories from Home Metabox.

Will something like that work? Is there anything out there that can handle this?

You can see the issue at work here: http://onebeat.dswdev.net/. You can see that there is a category flag on the homepage that is supposed to be clickable to return all posts in that category, but it's not yet clickable. You can see from the menu that a post could live in three categories.

Any help on how to solve this would be appreciated.


Viewing all articles
Browse latest Browse all 8245

Trending Articles