How can I enable featured images for listings?

You are here:
  • KB Home
  • Media
  • How can I enable featured images for listings?
< Back

 

  • Add to the theme’s functions.php file:
    add_post_type_support(‘directory_dir_ltg’, ‘thumbnail’);
  • Make sure to change directory_dir_ltg to the post type name of the listing in your directory. You can view this from Directories –> [Your Directory] –> Content Types.
  • If you have multiple directories, simple add multiple add_post_type_support, one for each directory.

 

Previous Can one show videos in addition to images?
Next Is it possible to change the image dimensions for thumbnails?
Table of Contents