Main menu

Blog

Having a shortcode in the normal editor window can cause problems when clients edit their content. It is very easy for them to delete or modify the code causing issues that they will be in contact about. One easy way around this is to have the shortcode coded into the page template by using the do_shortcode function, for example adding a gallery.

When developing a custom theme for WordPress it is sometimes very useful to have custom fields with images of set sizes which are used for links, slideshows and custom galleries.

For example the Website screenshots on this website use a custom field called ‘screenshot’ (created in Advanced Custom Fields) to contain the full size screenshot and custom image sizes for the images in the links on the right sidebar.

The main advantages of using this technique is that you can design a theme with nice fixed size image links and the client just has to add an image into a field and it is automatically correctly resized.