About Sridhar Katakam
I am an independent WordPress web consultant with 10 years of experience in WordPress theme installation, customization, administration, maintenance, support, documentation, troubleshooting and PSD/design to WP.
Genesis and WordPress Tutorials
Session expired
Please log in again. The login page will open in a new tab. After logging in you can close it and return to this page.
Thanks for the tutorial, Sridhar.
Just so I understand, this would apply to ALL archive and ALL search pages, right?
What would you do if you wanted it for ONLY ONE category archive page (say, a category with the name of Books and a slug of books)?
Do we just change this:
function sk_set_posts_display() {
if ( ! ( is_archive() || is_search() ) ) {
To something like this:
function sk_set_posts_display() {
if ( ! ( is_archive('books') || is_search() ) ) {
is_archive(‘books’) would work for an archive page of custom post type called books, but not for a category of books.
If you want to show just for a category of books use is_category(‘books’)
If books is a custom taxonomy (custom category type) you’d use is_tax(‘books’).
See http://codex.wordpress.org/Function_Reference/is_category
Thanks for the assist, Craig!
Thank you for your information.But it doesn’t work for outreach pro theme..can you assist me to resolve as soon as possible
Thank you!
How to display slider or image after the header in blog page?