Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WordPress – category image

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #39998
    cybershot
    Participant

    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’);

    Author
    Posts
Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.