Category: PHP

Dequeue WMPL language-selector.css

WPML does not use wp_enqueue_style, but there is constant for language selector to prevent loading of the styles. Add following snippet to your functions.php. Read more about WPML constants and functions

Display caption with post thumbnail in WordPress


Add excerpt support to pages in WordPress

Add following code to your themes functions.php file.

Create additional image sizes in WordPress

Register additional image sizes Additional image sizes can be defined in your themes functions.php. In example

Full documentation can be found at WordPress Codex Displaying additional image sizes in your theme

Previously upload images do not have the new image size. Images can be generated with Regenerate Thumbnails plugin