Tag Archives: gallery

June 2014 Meetup Notes: Post Galleries, Nofollow, and More

Things change rapidly in the WordPress world. The content in this post is more than a year old and may no longer represent best practices.

Q & A

How do I display a gallery of posts?

Eve Lurie wanted to know whether it was possible to link the thumbnails in a WordPress gallery to posts instead of just to images. The gallery shortcode in WordPress doesn’t work that way–it’s really meant just for images–but there are various other plugins that will display posts or pages by featured image. Pieter Hartsook recommended the Justified Image Grid plugin from CodeCanyon. There’s a free Justified Image Gallery plugin that looks like it may do a similar thing in a more limited way, and there is a Masonry Post Gallery plugin. And there’s a plugin I used many years ago, which has been updated, WordPress Gallery Custom Links. There’s an interesting-looking plugin called WP Masonry Layout that has both a free and a pro version and works with multiple post types.

How do I make external links nofollow?

Google’s latest algorithm changes have caused some confusion regarding appropriate treatment of external links. In general, it’s good to have some external links, but if you use anchor text that says something like “Best dry cleaning service ever” your link may be interpreted as spam. So you might want to make all of your external links “nofollow” links, and also to be careful to use neutral-sounding anchor text: just the name of the business, or even the URL itself. Fortunately, there are plugins to help you with this:

May 2012 Notes: Ratings, Translation, Galleries, and More

Things change rapidly in the WordPress world. The content in this post is more than a year old and may no longer represent best practices.

Can anyone recommend a better plugin for rating posts than Post Ratings?

Suggestion from Michael McColl: GD Star Rating, which uses microformats to display the stars in Google search results.

How do you link an image to a PDF?

  1. Upload the PDF file to your media library.
  2. Copy its URL.
  3. Insert an image into a post or page.
  4. Select “None” under link and then paste in the URL of the PDF.
  5. Click “Insert into post.” The image will now link to the PDF file.
Click on an item in the Media Library to show its URL.
Change the link URL in the image to the URL of the PDF. Clicking this image will display a PDF file.

Gallery Bug: Can’t Link Thumbnails to URL

This is a long-standing issue in WordPress: if you create a gallery using the native [gallery] shortcode, you can’t link the thumbnail images to anything but the image attachment page or a larger version of the image. Some recommended solutions:

NextGEN Gallery (A plugin with extensive features for gallery management and display, perhaps overwhelming to beginners.)

Gallery Just Better (Lightweight plugin to replace the native gallery feature. Use [jbgallery link="url"] to link the images to URLs specified in the Description (NOT LINK) field.)

WordPress in Thai

WordPress has been translated into many languages. (Yes, Thai is one of them.) To find out whether yours is one of them, visit the WordPress in Your Language Codex page. Some plugins have been localized for different countries, though there will usually only be a handful of versions. All plugins and themes should include translation-ready code (see i18n for WordPress Developers).

There’s also a page  with instructions on how to set up a multilingual blog with WordPress that explains the different types of translation plugins:

There are a few basic types of multilingual Plugins:

  1. Manage multilingual posts in one post per language (for example WPML (profitable), xili-language or Polylang). Translations are then linked together, indicating that one page is the translation of another.
  2. Store all languages alternatives for each post in the same post (for example qTranslate).
  3. Manage translations on the generated page instead of using a post context (for example Transposh and Global Translator)
  4. Plugins that direct you to external translation services (for example Google AJAX Translation)
  5. Plugins like Multisite Language Switcher and the newcomer Multilingual Press link together separate WordPress network (multisite) installations for each language by pinging back and forth.

WPML is now a premium plugin, though there are many add-ons for it in the WordPress plugin repository.