Show only category and date metadata on Posts & Blog Page

Hi there,

Can you tell me how to show only category and date metadata on posts and on the blog page? I’ve managed to show just these on the featured slider post on the blog page, but can’t seem to get it done for the other posts.

Assume its a global CSS code…

Any thoughts?

Hello @bradkerin,

Thanks for writing in!

Do you want to display like this?

To resolve this, please add the following CSS code in the X > Theme Options > Global CSS (http://prntscr.com/evui3r)

.p-meta>span:nth-child(2):after,
.p-meta>span:nth-child(3) {
    display: none;
}

We would love to know if this has worked for you. Thank you.

Hi there - thanks for that code. I just want to display the category and date and not the author.

How do I show without the author?

I’m also wanting to know how I show most recent posts in the list on that page?

Thanks so much for your help!

Hey @bradkerin,

That is not possible with CSS because the author and categories are part of one area of the post meta and that is based on the Ethos stack’s design.

You’d need to override the Ethos Entry Meta function so that means you’d need to install a child theme and copy the function from the parent theme then edit the function and paste it in the child theme’s functions.php.

You can find Ethos Entry Meta function in the ethos.php file inside the wp-content\themes\x\framework\functions\frontend folder.

If you’re not familiar with PHP, you’d need to hire a WordPress developer to edit the function for you because as you might already know, we do not provide customization support.

In the future, we will have a feature that will allow you to create a custom single and archive templates so you’d be free to choose what you want to display. I’d recommend waiting for this feature.

------------------------------------------------------------

Regarding your other question about displaying recent posts, the post listing itself already displays recent posts but that is per category. If you wish to display recent posts regardless of category, you will need to deactivate the Filterable Index feature of Ethos. You can find that option in Theme Options > Ethos > Blog Options.

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.