A user in StudioPress forums asked
I am wondering how can I have a category page like the page link below show only post title preferably in an alphabetical list.
We can modify the main query by using pre_get_posts hook. As Bill Erickson writes,
WordPress has a very handy hook called pre_get_posts. It fires once all the query settings are ready but right before the actual query takes place. This is where we’ll jump in and modify the query settings if needed.
Below is the code to display linked post titles ordered by titles in ascending order for category pages in Genesis.
For child themes that are not yet updated to use the HTML5 markup like the Lifestyle 2.0.1
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
Thank you for this code. It worked perfectly !!
But I have just a little question. Where do I change the font-size of the post titles?
I’m using the Metro theme, but as you can see, the titles is somewhat big I think. I want them to be as big as normal text.
I’ve updated the post with sample CSS for this.
Thanks for your info.
However … I would like to make the post titles on the category page not linking (Portfolio theme), maybe you can give me a hint?
Did you mean, Modern Portfolio?
Hi Sridhar, Thanks for the tutorial! But would you know how to do this for a custom post type archive only?
I am also using metro, I adapted your function to work with my custom taxonomy listings.
However, I am struggling to change the post titles for these please can you advise?
Hi there Sridhar !
Thank you for this really cool post.
If you take a quick look at the source code – you will notice that the following markup is left over:
Any ideas on how to get rid of it 🙂
Sorry looks like the HTML vanished!
is the markup I would like to get rid of (because its empty)
Asked here: http://www.studiopress.com/forums/topic/how-to-get-rid-of-entry-content-div/
Thank you Sridhar for your followup! I will definitely follow your thread 🙂
I’ve updated the code in my blog post above to take care of this. Take a look.
Thanks for this smart post!
thanks to that code.
is it possible to do this like an alphabetical index (for me reciepes) ?
Thanks for this post. It helped me a lot.
Can I do the same to the tags section. Like:
Thank you for this post. It was incredibly helpful.
Is there a way to display featured images and post titles only? Essentially I just want to remove the post content and only show a list of post titles on a category page with their featured images too.
[…] archives to display the title and dates only within a custom loop. The code was referenced from Sridhar Katakam and Bill […]
i am running genesis theme with news child theme. I want to show only the title in category page.. ie: mysite.com/category/file.
Now i found your code. But please specify where i want to put this code ?… through wordpress itself or through cpanel-file manager ?.. hope you reply
Great post! You made another post about only show post titles in genesis (http://www.sridharkatakam.com/show-post-titles-genesis/). What you wrote above is nearly what i want. I would like to have all the Post titles to appear in a more condensed manner, clickable and with an image of an arrow before every post. I tried what you did in your second post but my page became a mess. Do you have the sollucion?
This is almost exactly what I need. However, my client’s blog posts are REAAAALLLLYYYY long bible studies. So on the main blog page (which is not the home page – it’s another menu item), I just want to show one blog post. But for the category listings, I want to show all titles on one page for that category. Is there a way to do this?