Posts panels

This will add a single panel in the admin interface, but this single panel will dynamically generate multiple panels in the published accordion, based on the set parameters.

When you select this panel type the Content Type setting in the panel's Settings window will automatically be set to Content from posts . Also, in the Background editor, some fields will be automatically populated with data. For example, the [ga_image_src] will be added in the background'sSource field and [ga_link_url] in the link's URL field.

[ga_image_src] and [ga_link_url] are dynamic tags and are used for fetching a specific data from the posts that were loaded. You can also use these tags in the Layers and HTML editors. Each of these editors have, in their inline info, a list of the dynamic tags that can be used inside that specific editor.

This is the complete list of dynamic tags for Posts panels:

TagDescription
[ga_image] The post's featured image, as an img HTML element. It accepts an optional parameter to specify the size of the image: [ga_image.thumbnail]. Accepted sizes are: full, large, medium, thumbnail. The default value is full.
[ga_image_src] The URL of the post's featured image. It accepts an optional parameter to specify the size of the image: [ga_image_src.thumbnail]. Accepted sizes are: full, large, medium, thumbnail. The default value is full.
[ga_image_alt] The alt text of the post's featured image.
[ga_image_title] The title of the post's featured image.
[ga_image_description] The description of the post's featured image.
[ga_image_caption] The caption of the post's featured image.
[ga_title] The post's title.
[ga_link] The post's link, as an anchor HTML element, with the post's title as the text of the link.
[ga_link_url] The post's link.
[ga_date] The post's date.
[ga_excerpt] The post's excerpt.
[ga_content] The post's content.
[ga_category] The first category that the post is assigned to.
[ga_custom.name] Returns the value from a custom field. The name parameter indicates the name of the custom field.

Have more questions? Submit a request

0 Comments

Article is closed for comments.
Powered by Zendesk