Please note, this is a STATIC archive of website www.themepunch.com from 28 Sep 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Use Custom WP Queries for your Post-Based Sliders

home_topbanner

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.