Skip to content

WP Developing

Learning WP Development My Way

Tag: images

Can one create categories that use images instead of text for their display?

Yes, by adding a custom field to the taxonomy with the type image. Locations by default include this image field, other taxonomies do not.

Is it possible to change the image dimensions for thumbnails?

 

The plugin currently uses 240×180:

add_image_size('drts_thumbnail', 240, 180, true);

This can be overridden by adding code to the functions.php file of your theme:

add_action('init', function() {
    add_image_size('drts_thumbnail', 240, 160);
});

 

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