WP Post
The WP Post Item type allows you select and display a specific post with Ditty.
Editor Settings
The following settings are located on the settings panel for the WP Post Item type. Hover over your item and select the Edit icon to adjust your settings.
General Settings
- Post ID – Add the ID of the post you want to display.
Title Settings
- Title Element – Choose the html wrapper element for titles.
- Title Link – Add a link to the post.
Content Settings
- Content Display – Configure settings for the post content.
- Excerpt Element – Choose the html wrapper element for excerpts.
- Excerpt Length – Set the length of the excerpt.
- Read More Text – Add read more text to the excerpt.
- Read More Before Text – Add text before the Read More text.
- Read More After Text – Add text after the Read More text.
- Read More Link – Link the read more text to the post.
Link Settings
- Link Target – Set a target for your links.
- Link No Follow – Enabling this setting will add an attribute called ‘nofollow’ to your links. This tells search engines to not follow this link.
Layout Tags
The following tags are available to use with the WP Post Item type. Read more about what Layouts are and how they are used here: What are Layouts?.
HTML Tags
- {author_avatar} – Render the item’s author avatar.
- {author_bio} – Render the item’s author biography.
- {author_name} – Render the item’s author name.
- {categories} – Render the item’s categories.
- {content} – Render the item’s content.
- {custom_field} – Render a custom field for the item.
- {excerpt} – Render the item’s excerpt.
- {icon} – Render the item’s icon.
- {image} – Render the item’s image.
- {image_url} – Render the item’s image url.
- {permalink} – Render the item’s permalink.
- {terms} – Render specified taxonomy terms for the item.
- {time} – Render the item’s date/time.
- {title} – Render the item’s title.
CSS Selectors
- .ditty-item__elements
- .ditty-item__author_avatar
- .ditty-item__author_bio
- .ditty-item__author_name
- .ditty-item__categories
- .ditty-item__content
- .ditty-item__custom_field
- .ditty-item__excerpt
- .ditty-item__icon
- .ditty-item__image
- .ditty-item__image_url
- .ditty-item__permalink
- .ditty-item__terms
- .ditty-item__time
- .ditty-item__title