Skip to content

WP Developing

Learning WP Development My Way

Tag: featured images

How can I enable featured images for listings?

 

  • 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.

 

Recent Posts

  • Things You Almost Certainly Will Never Need to Know: WDS-Shortcodes
  • DevKinsta: Initial Thoughts and Feedback
  • Migrating a WordPress Site to SpinupWP the Easy Way
  • When You Get an Invalid Default Value Error While Changing Your MySQL Engine on a Table from MyISAM to InnoDB
  • Headless WordPress

Recent Comments

  • Dave Mackey on Migrating a WordPress Site to SpinupWP the Easy Way
  • Archer Hood on Migrating a WordPress Site to SpinupWP the Easy Way
  • Kingsley Ibietela Felix on Migrating a WordPress Site to SpinupWP the Easy Way
  • Dave Mackey on Migrating a WordPress Site to SpinupWP the Easy Way
  • Kingsley Ibietela Felix on Migrating a WordPress Site to SpinupWP the Easy Way

Archives

  • May 2021
  • April 2021
  • November 2020
  • September 2020
  • May 2020
  • April 2020
  • September 2018

Categories

  • Database
  • Developer Knowledge
  • Developer Tooling
  • Directories Pro
  • Gatsby
  • Hosting
  • MySQL
  • Plugins
  • SQL
WP Developing Proudly powered by WordPress