2. Post Scroller

[u_post_scroller post_type="" cat="" order="" orderby="" meta_key="" link_text="" link_url=""]

The [u_post_scroller] shortcode has the following variables/options:
  1. post_type (optional) – Default ‘post’
    • post: Default post
    • u_event (custom post type)
    • u_course (custom post type)
    • u_project (custom post type)
  2. count (optional) – Default 4
  3. order (optional) – Default DESC (ASC|DESC)
  4. orderby (optional) – Default DATE
    • ‘none’ – No order
    • ‘ID’ – Order by post id. Note the captialization.
    • ‘author’ – Order by author.
    • ‘title’ – Order by title.
    • ‘name’ – Order by post name (post slug).
    • ‘date’ – Order by date.
    • ‘modified’ – Order by last modified date.
    • ‘parent’- Order by post/page parent id.
    • ‘rand’ – Random order.
    • ‘comment_count’ – Order by number of comments
    • ‘menu_order’- Order by Page Order. Used most often for Pages (Order field in the Edit Page Attributes box) and for Attachments (the integer fields in the Insert / Upload Media Gallery dialog), but could be used for any post type with distinct ‘menu_order’ values (they all default to 0).
    • ‘meta_value’ – Note that a ‘meta_key=keyname’ must also be present in the query. Note also that the sorting will be alphabetical which is fine for strings (i.e. words), but can be unexpected for numbers (e.g. 1, 3, 34, 4, 56, 6, etc, rather than 1, 3, 4, 6, 34, 56 as you might naturally expect). Use ‘meta_value_num’ instead for numeric values.
    • ‘meta_value_num’ – Order by numeric meta value (available with Version 2.8). Also note that a ‘meta_key=keyname’ must also be present in the query. This value allows for numerical sorting as noted above in ‘meta_value’.
    • ‘post__in’- Preserve post ID order given in the post__in array
  5. meta_key (Optional) ame of meta key for ordering
  6. link_text (optional) – Label of more link. If not set, “More” button is not shown
  7. link_url (optional) – URL of more link
  8. cat (optional): ID or slug of categories. Separated by a comma. Ex. 1,2,3,4
  9. tag (optional): Tags list. Separated by a comma. Ex. Tag1, tag2, tag3
  10. ids (optional): IDs of posts. Separated by a comma. Ex. 1, 2, 3, 4