WordPress posts generator

With this dynamic slide generator you can show the contents of your posts.

Video tutorial

Smart Slider 3.2 - Post slider

Tutorial

  1. Create a new slider, or use an existing one.

  2. Choose to give dynamic slides to your slider.
  3. Click on the WordPress Posts block:

    and choose one of the WordPress generators.

  4. Set up your generator, choose the settings you think you want, change the number of slides to how many do you want to be in your slider, change the cache expiration to the time you want your slider to look for new data, and if you want to, you can check, what will be on your slides in the record viewer.

  5. Now you can start working on how your slides will look with the datas of the first slide. You can put down layers, and use the VARIABLE signs to put that data inside them, what you want there to be.

  6. If something is not clear, check out how the dynamic slide generators work.

Filter

Posts by filter
  • Categories - You can select the categories from where you want the posts.
  • Tags - You can select what tags should be used by the posts.
  • Custom Taxonomies - There are plugins, themes or your own code, that can give custom taxonomies to your posts. You can filter your posts based on these taxonomies as well.
Posts by IDs
  • Ids (one per line) - You can add the ids of those posts, which you would like to have in your slider. Write one number in one line. 
Custom posts
  • Taxonomies - Custom posts can have taxonomies, for example a post's category is a taxonomy, a tag is a taxonomy, etc., so the groups of your custom posts. You can filter based on these taxonomies and with the "relation" option you can select wether you want to get posts, where all the selected taxonomies are applied or where either one or the other applies.
  • Only display these posts - Only display posts with the given IDs.
  • Exclude posts - Exclude posts with the given IDs.
  • Post custom fields - Custom posts have "meta keys", for example a product's price can be a meta key, an event's starting date. Basically these are the datas of your posts. You can compare these keys with values, for example you could show posts, where the "onstock" value is "yes".
  • More post custom fields - The same as the previous one, but you can manually write down any number of comparisons.
  • Post status - Posts can have different statuses, like "published", "pending", "confirmed" etc.. You can filter based on these.
  • Date & time - You can make our code try to identify your date and time values to format + translate them. For the formatting you can find the usable characters here.
    (There isn't a PHP function, that can identify datetime values, because for example a simple number, like 1 could represent a time value too. So this is just a function written by us, which seems to work in most cases, but it is not a 100% working solution.)
  • Remove duplicates - If you enter one variable's name into the "Unique variable" field, then you will only have results, where the result of that variable is unique. For example if you use the 'image' variable and you have posts with the same images, one image will only be displayed once within your slider.
    This code has to happen after the custom posts were asked down, so the "Slides" number at your generator's settings represents all the slides and the not unique values will be removed from that. To be able to manage this better, you could write a bigger number into the "Slides" field, to surely have the number of slides you want and with the  Maximum slide count option you would be able to set the number of slides you actually want.

Variables

Posts by filter, Posts by IDs, Custom posts
  • id - The id of the post.
  • url - Url to the post.
  • title - The title of the post.
  • excerpt - Excerpt of the post.
  • modified - Date of the last modification.
  • content, description - The content of the post.
  • author, author_name - The display name of the post's author.
  • author_url - Url to the website of the post's author.
  • category_name - The name of the post's category.
  • category_name_[x] - The name of the post's category. This variable was made, if you have multiple categories selected for your post, you can show more, not just the first one.
  • category_link - Url to the post's category.
  • category_link_[x] - Url to the post's category. This variable was made, if you have multiple categories selected for your post, you can show more, not just the first one.
  • image, thumbnail, featured_image - The featured image of the post.
  • image_[size] - Different image sizes for the featured image of the post.
  • Advanced custom field variables. Advanced custom field stores their variables in many different ways, so it is not 100% that you can get all your variables!
  • The meta datas of the post. Meta data can be stored in many different ways, so it is not 100% that you can get all your meta datas!

Ordering

Posts by filter
  • Post date
  • ID
  • Title
  • Modification date
  • Random
  • Comment count
Posts by IDs

The posts will come in the order you entered their IDs.

Custom posts
  • Post date
  • ID
  • Title
  • Modification date
  • Random