Shortcode
Shortcode Usage
You can add an image that has a fallback to any page or post with the [fallback_image]
shortcode.
The shortcode accepts the following parameters:
- Post ID (
[fallback_image post="1234"]
) - (optional) The ID of the post that you want to use, if the post image is not set on that post, a random fallback image will be selected. By default the current Post ID is used. - Size (
[fallback_image size="post-thumbnail"]
) - (optional) A preset WordPress size, default ispost-thumbnail
. - Attributes (``[fallback_image attr=""]`) - (optional) A query string, default is empty.
You can add an image that has a fallback to any page or post with the [fallback_image]
shortcode.
The shortcode accepts the following parameters:
- Post ID (
[fallback_image post="1234"]
) - (optional) The ID of the post that you want to use, if the post image is not set on that post, a random fallback image will be selected. By default the current Post ID is used. - Size (
[fallback_image size="post-thumbnail"]
) - (optional) A preset WordPress size, default ispost-thumbnail
. - Attributes (
[fallback_image attr=""]
) - (optional) A query string, default is empty.