A simple but effective WordPress plugin to render random blog posts in pages and/or posts. This is the first public release and features the following shortcode options to customize the rendering process:
- header: whether to output header text (default=)
- show_featured_image: whether to output featured post image (default=TRUE)
- featured_image_height: height of featured image in px (default=100)
- preview_text_chars: amount of chars to be displayed for preview text (default=200)
- container_css_class: CSS class of outer container (default=articles-preview-container)
- container_article_css_class: CSS class of article containe (default=article-preview)
- append_css_clear: whether to append a CSS clear container (default=TRUE)
- container_left_width: px or % (default=65%)
- container_right_width: px or % (default=30%)
Usage
In order to use the plugin just insert the shortcode
[simple_random_post]
and use the options provided above to customize the plugin. Feel free to download it from the official WordPress plugin repository.
Demo
Below you find a demo using the following shortcode:
simple_random_posts header="<b>Custom header</b>
[simple_random_posts header=”Custom header“]
Leave a Reply