[yoko_content]
This shortcode aims to bridge the gaps in page and theme builder systems that may support varying degress of templating for structured content. For example, it may be difficult to pass the post_title to the properties of a Gutenberg block if the block is not configured to do data binding. Likewise, meta content may be difficult to access from within Gutenberg block settings or other page builder module settings.
Syntax
[yoko_content type="post_title" post_id="123" meta_key="event_start_date"]
NOTE: The post_id is optional. If missing, will use the current post ID.
Supported Values
This is a running list of the supporter values for the type parameter:
post_title or title
Render the post title.
post_content or content
Renders the post content.
post_excerpt or excerpt
Render the post excerpt.
parent_title
Will render the post's direct parent's title. Will render the current post's title if post_parent = 0.
eldest_parent_title
Will render the post's eldest parent title. Will render the current post's title if post_parent = 0.
parent_meta
Must provide meta_key attribute value.
Will render the post's direct parent meta value. Will render the current post's meta_value if post_parent = 0.
eldest_parent_meta
Must provide meta_key attribute value.
Will render the posts' eldest parent meta value. Will render the current post's meta_value if post_parent = 0.
parent_permalink
Will render the post's direct parent permalink.
eldest_parent_permalink
Will render the post's eldest parent permalink. Will render the current post's permalink if post_parent = 0.
post_meta
Must provide meta_key attribute value.
Will render the single meta_key meta_value of the current post.
post_thumbnail
Will render the full HTML of the current post thumbnail.
post_date
Will render the current post's post_date value.
post_modified
Will render the current post's post_modified value.
post_author
Will render the display_name of the current post's author with no link.
post_permalink
Will render the current post's permalink.