WordPress › Support » moka-get-posts
Provides a [moka-get-posts] shortcode for displaying posts or pages using the get_posts function. The shortcode accepts most parameters that you can pass to the get_posts() function. Additional arguments are: show_fields="post_content,post_excerpt,post_thumbnail" (use post properties; additional fields include post_thumbnail and post_permalink), thumbnail_size="large" (default: "thumbnail" to set post_thumbnail size), and permalink_title (default: "true" to wrap title in permalink). To show posts or pages, add [get-posts category="NN"] in the page or post body. To get pages, use the post_type parameter, e.g., [moka-get-posts post_type="page"]. You can also pass a template using shortcode content. Use the %post_title% format to have fields substituted. Substitution fields most be listed in the "show_fields" argument.
| Topic | Posts | Last Poster | Freshness |
|---|---|---|---|
| [Plugin: Moka Get Posts Shortcode] Parameter show_fieds=post_excerpt with a page post_type | 1 | mherbelin | 1 year |
| [resolved] [Plugin: Moka Get Posts Shortcode] Specify post ID? | 2 | John Smith | 1 year |
| [Plugin: Moka Get Posts Shortcode] Possible to use a file-based template | 2 | bobmatnyc | 1 year |
You must log in to post.