Category choice on Front Page

QuestionsCategory: QuestionsCategory choice on Front Page
Hilary Gallagher asked 5 years ago

Hello! I’ve got multiple categories for each post and I’d like to specify which category it shows over the post instead of it apparently choosing at random. For example, I’m a wedding photographer and my posts will be listed in the following hierarchy for categories for a post of a wedding photographed at Bishop Farm in New Hampshire:
Weddings
–New Hampshire
—-Bishop Farm
The goal is to have a page where I can allow viewers to view all my blog posts from certain venues by name.

I thought that since I put NH and the venue UNDER weddings that the post would choose the PARENT category to show, but if you load the homepage on my test site ( http://hilarycolleen.wpstagecoach.com ) you will see it chooses the 3rd level category on some, second level on others and first level on others. How can I fix this?

2 Answers
Jennifer Staff answered 5 years ago

With the category list, it is automatically in Alphabetical order.  The theme pulls 1 category to display on the front and by default it will be the first.  That is why the first post uses Bishop Farm from these chosen categories Bishop Farm, New Hampshire, Weddings.  The second post has New Hampshire, Rye Harbor and Weddings, so New Hampshire is what is shown on the front of the site.
 
An option would be to use only 1 main category, and list everything else as tags.  Or I can take the category display off of the blog posts. 

Hilary Gallagher replied 5 years ago

Hmm, well, the tags won’t be AS intuitive when I go to set up a venue directory later, so I think I’d rather have the category no longer visible on the front page or the blog page, but then all categories can be listed on the actual post when it is viewed – does that make sense and is that what you meant by taking the category display off? If so, I’d like the coding for that!

Jennifer Staff answered 5 years ago

If you go to Appearance > Customizer > Additional CSS you can add this code to remove it from the front blog section. 
 
.front-page .content .entry-meta {
display: none !important;
}
 
This code to remove the meta from the blog page
 
.page.page-template-page_blog .entry-header p.entry-meta {
display: none !important;
}
 
You may need to clear your browser and hosting cache after adding the code to see the changes.

Hilary Gallagher replied 5 years ago

I went in and just added an * at the front of the categories that I wanted to show first – thanks though!