All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

WordPress – category image

  • # September 25, 2012 at 1:12 am

    I have modified the categories.php and loop.php to display only the title of each post in my theme with the permalink. I have added an image field to the categories admin area so that when you make a new category, you can upload an image for that category. I am making a menu for a restaurant. So I will make a lunch category, upload a featured image for that category and then post several posts to that category that will display the title under the featured image. When you click on the title, it will take you to the post.

    I have this sort of working. I can get the featured image for the category by doing this

    $cat_image = get_option(‘category_image’);

    Viewing 1 post (of 1 total)

    You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed