Cleaning up WordPress Archives
I’ve had all my WordPress pages displaying full posts for a while now, and it’s pointless. When you go through a category or your search results, or an archive, you don’t want to see the whole post. The point is to scan.
Developed Traffic has the answer. Â I’m going to break it down into even [...]
I’ve had all my WordPress pages displaying full posts for a while now, and it’s pointless. When you go through a category or your search results, or an archive, you don’t want to see the whole post. The point is to scan.
Developed Traffic has the answer. Â I’m going to break it down into even smaller steps.
- If your theme does not include an “archive.php” file, make one. Copy it from your index.php file.
- Find
- <?php the_content() ?>
- and replace it with with
- <?php the_excerpt(); ?>
- You should also make an identical “search.php” file. At this point, only your excerpts are showing when people look at categories, archives or search results. The only thing that sucks is that each page shows the same number of excerpts as your blog is set to show full posts.
- Get the Custom Query String plugin. Follow their directions to install, activate and go to the options screen.
- Use the query drop down box to select “is_archive”. Put a number in the “Show posts” box - I’d suggest 10 or 15 (see how it looks with your sidebar). Click the Add button. Yes, there are other options here to play with - try them out and see what happens.
- Now do that last step again for: is_category, is_date, is_month, is_year and is_search. And if you have multiple authors, you may want to do is_author, too.
Now you have great archives, categories and search results that are easy to scan.
