Frequently Asked Questions


Now that 2.7 has launched, we are working to finalize a new Support site. If you can't find what you are looking for in the new Support site, come back to faq.wordpress.com.

Support

Image Settings – Titles, Descriptions, Captions, etc.

You can add captions to your images by using the “Image Caption” field in the “Add an Image” or the “Edit Image” window.

WordPress Heart Button

WordPress Heart Button

When you add a caption to an image, caption shortcode is inserted into the source code. The caption is also used as the alternate text for the image by default. Here is the source code for the image above right after inserting it.

[caption id="attachment_945" align="aligncenter" width="161" caption="WordPress Heart Button"]<a href=”http://faq.files.wordpress.com/2008/07/dandy-pink.png”><img class=”size-full wp-image-945″ src=”http://faq.files.wordpress.com/2008/07/dandy-pink.png” alt=”WordPress Heart Button” width=”161″ height=”142″ /></a>[/caption]

The “Add an Image” window let’s you upload an image and give it a title, caption, description, alignment, and size. These fields are used on the permalink page for the image.

WordPress Add an Image Window

Once an image has been inserted, you can change the details and advanced settings for that instance of the image by clicking on it from the visual editor and clicking the “Edit Image” button that appears.

WordPress Edit Image Button

In the “Edit Image” window, you can edit the size, alignment, title, caption and URL.

WordPress Edit Image Window

In the “Advanced Settings” window, you can edit the size, URL, alternate text, width, height, css class, styles, border, vertical space and horizontal space for an image. You can also edit the title, rel attribute, css class, styles, and target for the link that surrounds the image.

Gallery Shortcode

The gallery shortcode is used in a post or page to display a thumbnail gallery of images attached to that post or page. Captions are displayed under each image when a gallery is inserted. Gallery title, caption, and description are set when you upload an image and can be modified in Manage > Media Library. The shortcode can be used in its simplest form like this:

[gallery]

Here is the gallery for this FAQ post:

Here are some gallery shortcode options:

[gallery orderby="menu_order" order="ASC"]

[gallery orderby="menu_order" order="DESC"]

[gallery orderby="post_title" order="ASC"]

[gallery orderby="post_title" order="ASC"]

[gallery size="medium"]

[gallery columns="2"]

How to Find the Permalink for an Image

  1. Go to your dashboard.
  2. Go to Manage > Media Library.
  3. Look under “Location” on the right side of the table.

How to Find the URL for an Image

  1. Go to your dashboard.
  2. Go to any post or page.
  3. Click the “Add an Image” button at the top of the visual editor.
  4. Click “Media Library” in the top bar.
  5. Click “Show” to the right of an image.
  6. The image URL is in the “Link URL” field. If the “Link URL” field is empty, click the “File URL” button and the URL should appear.
  7. Once you have copied the URL, click the “x” button at the top right of the window to exit.

Image Source

Related links

Related Questions

« Back to front page