Use Custom WP Queries for your Post-Based Sliders

Dynamically adjust your slider's list of post IDs at runtime.

Post ID’s for a Specific Posts slider can be changed inside a shortcode like the following code example.

[rev_slider alias="my-post-based-slider"][gallery ids="0, 255, 256"][/rev_slider]
  • Quick Note:
    This is a variation of the technique described here, but adding the number "0" as the first entry allows for the acceptance of Post IDs.

And since post ID’s can be defined inside the shortcode, this can be expanded with a more complex WP Query.  In the following example, the PHP code can be added to a theme page template such as “header.php”, etc, and setup to only be displayed for specific pages, with different content based on any given page.