Image Shortcodes

Description


You can create various types of images to insert into your pages. Images can be resized to the dimensions specified and positioned around content.

Styled Images


Create theme styled images using the styled_image shortcode and optional settings for image dimensions, links, etc. You can also add captions and lightbox effects as needed.
[styled_image w="400" h="300" lightbox="yes" image="http://mysite.com/myimage.jpg"]
Styled Image Shortcode (with caption)
This is an example of the [styled_image] shortcode with a caption added by inserting the parameter caption.

Parameters

w
(integer) Image width. Exclude parameter for proportional adjustment based on height setting or set to “0” for original width.
h
(integer) Image height. Exclude parameter for proportional adjustment based on width setting or set to “0” for original height.
image
(integer/string) ID of the desired media file or URL of the image file.
align
(string) (Optional) Image alignment: left, right, center.
alt
(string) (Optional) Image description or alternate text.
caption
(string) (Optional) Caption text displayed below the image.
link
(string) (Optional) URL for the image link.
lightbox
(string) (Optional) Open link in a lightbox: Yes, No. If opening the full size version of the image being resized the “link” parameter is not needed.
rel
(string) (Optional) Text for link’s “rel” tag. Multiple images with the same rel tag will be connected through the lightbox next/previous buttons.

Samples

Basic styled images. The images below use the styled image shortcode with lightbox enabled. They are linked together in the lightbox with a matching rel parameter and the lightbox description text is added with the alt parameter.
Styled Image Shortcode Sample 1
Styled Image Shortcode Sample 2

Plain Image


A basic image resized and output to the specified width and height.
[plain_image w="400" h="300" image="http://mysite.com/myimage.jpg"]

Parameters

w
(integer) Image width. Set to “0” for original width.
h
(integer) Image height. Set to “0” for original height.
image
(integer/string) ID of the desired media file or URL of the image file.
align
(string) (Optional) Image alignment: left, right, center.
alt
(string) (Optional) Image description or alternate text.

Samples

Plain Image Shortcode Sample

Resized Image URL


Returns the full URL to create a resized image at the size specified. This is useful for inserting a resized image path into other shortcodes or widgets.
[resized_image_path w="400" h="300" image="http://mysite.com/myimage.jpg"]

Parameters

w
(integer) Image width. Set to “0” for original width.
h
(integer) Image height. Set to “0” for original height.
image
(integer/string) ID of the desired media file or URL of the image file.

Samples

http://para.llel.us/themes/mingle-wp/wp-content/themes/parallelus-mingle/assets/images/placeholder.jpg

Translations

Our associates speak many languages. Call us today!

Featured Video

Calendar

November 2017
M T W T F S S
« Feb    
 12345
6789101112
13141516171819
20212223242526
27282930  

Preferred Sites

Realtor Ad Square
Trulia Loopnet

About Capital Nest

Capital Nest is a premier real estate company with many aspects related to investments, development and finance. The firm was established since 2006 and is currently expanding onto international markets. We encourage you to register with us and stay better connected with our achievements. This website and its use is offered under the terms and conditions of its User Agreement and Privacy Policy. Your use of this website constitute an agreement with both.

Why Capital Nest?

Capital Nest has retained only the best of brokers and agents in the industry. It is also closely affiliated with development, investments and financial groups to better serve and assist our Clients.
Follow us:  Twitter | Vimeo | Facebook
  © 2015  Copyright  |  Capital Nest Realty, LLC  |  All rights reserved.