TeamPress Grid

TeamPress Grid is a shortcode for displaying teampress on grid.

[ex_tpgrid style="" column="" count="" posts_per_page="" ids="" cat="" location="" fullcontent_in="" search_box="" category_box="" category_style="" order_cat="" location_box="" location_style="" order_location="" alphab_filter="" page_navi="" number_excerpt="" masonry="" order="" orderby="" meta_key="" view_profile=""]

 

  • style – Select number style(Default 1)
    • Team grid – stye start 1 to 20 (example style="1")
    • Team Image hover grid -stye start img-1 to img-10 (example style="img-1")
  • column – A number of items to show per line. Default 2
  • count – A number items will be showed. Default total items(Example: your team have 23 members but you only want to display 20 members, you can set count="20")
  • posts_per_page – relates param page_navi
    • page_navi="loadmore", posts_per_page is number of items to add in the end after event load more (Example page_navi="loadmore" posts_per_page="3" – show 3 items in the end after click button load more)
    • page_navi="" (Pagination), posts_per_page is number of items to show per page(Example page_navi="" posts_per_page="3" – show 3 items in per page).
  • ids – List of IDs to query, separated by a comma(example ids="1,2,3")
  • cat – List of category ids (or slug), separated by a comma(example cat="designer,manager" or cat="1,2")
  • location – List of location ids (or slug), separated by a comma(example location="london,chicago" or location="1,2")
  • fullcontent_in – type of display full content(Default fullcontent_in="", no display full content)
    • fullcontent_in="lightbox", full content display in lightbox(pop up in center screen)
    • fullcontent_in="collapse", full content display in collapse after items
    • fullcontent_in="modal", full content display in pop up in the right screen
  • search_box – Show or hide search box(Default hidden)
    • search_box="hide"
    • search_box="show"
  • category_box – Show or hide category filter(Default show)
    • category_box="show"
    • category_box="hide"
  • category_style – Show category inline or select box(Default select box). It works only parameter category_box="show".
    • category_style="", show category in select box style
    • category_style="inline", show category inline style
  • order_cat – Show category with custom order(Default “”). It works only parameter search_box="show".
    • order_cat="", not apply custom order
    • order_cat="yes", apply custom order
  • location_box – Show or hide location filter(Default hidden)
    • location_box="hide"
    • location_box="show"
  • location_style – Show location inline or select box(Default select box). It works only parameter location_box="show".
    • location_style="", show location in select box style
    • location_style="inline", show location inline style
  • order_location – Show location with custom order(Default “”). It works only parameter location_box="show".
    • order_location="", not apply custom order
    • order_location="yes", apply custom order
  • alphab_filter – Show or hide alphabetical filter(Default hidden)
    • alphab_filter="" – hide
    • alphab_filter="yes" – show
  • page_navi – type of display(load more event or pagination) refer with param posts_per_page
    • page_navi="loadmore", add items in the end after event load more
    • page_navi="" ,Pagination
  • number_excerpt – Enter number or "full" of excerpt to show(Default 10), example number_excerpt="20"
  • order – Order ascending (order="ASC") or descending (order="DESC")
  • orderby – Choose order condition
    • 'date' – Order by date.
    • 'ID' – Order by post id. Note the captialization.
    • 'author' – Order by author.
    • 'title' – Order by title.
    • 'name' – Order by post name (post slug).
    • 'modified' – Order by last modified date.
    • 'parent' – Order by post/page parent id.
    • 'rand' – Random order.
    • '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 ids array
    • 'none' – No order
  • meta_key – Enter custom field key, Show posts associated with a certain custom field
  • masonry – Apply masonry layout or not
    • masonry="yes", apply
    • masonry="" ,not apply
  • view_profile – Show or hide view profile button
    • view_profile="" – hide
    • view_profile="yes" – show
Example: Style 1 (3 columns) with Collapse, Alphabetical filter, Pagination and Search box(click here to view detail demo)
 
Was this page helpful?