0

Well , I know how to set up a featured image for a post . But I want to set up a featured image for categories . So admins/editors can choose a featured image ,like they do for posts .

And one more thing , I want to show list of categories in home page instead of showing posts or something static .

Thanks in advance

2
  • I do not want to use a plugin ,instead of using plugin I want to modify function.php file Commented Oct 16, 2013 at 13:03
  • I recently tried to accomplish this and found that the most user friendly way to accomplish this is a plugin. Otherwise you have to somehow incorporate the media library which is a whole other can of worms.
    – Howdy_McGee
    Commented Oct 30, 2013 at 19:24

1 Answer 1

0

You can add a image URL custom field: http://wpcrumbs.com/2013/09/how-to-add-custom-fields-to-categories/

1
  • Please explain why this is helpful. Also move in the important bits of code that are necessary to solve the question. Link only answers will die when the links die (link rot) and are automatically flagged by the community bot as "low quality" and open for deletion.
    – kaiser
    Commented Oct 16, 2013 at 14:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.