Food Table

Food Table is a shortcode for displaying food on table layout.

[ex_wf_table style="" count="" menu_filter ="" order_cat="" live_sort="" posts_per_page="" ids="" cat="" page_navi="" number_excerpt="" cart_enable ="" order="" orderby="" meta_key="" enable_search="yes" show_count=""]


  • style - only have style 1
  • count - A number items will be showed. Default total items(Example: you have 23 foods but you only want to display 20 foods, you can set count="20")
  • posts_per_page - Number of items per page(Example: if you have 10 foods but you only want to display 5 foods per page, you can set posts_per_page="5")
  • page_navi - Page navigation
    • page_navi="loadmore", Page navigation by button load more
    • page_navi="" (Pagination), Page navigation by numbers
  • 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="fastfood" or cat="1")
  • menu_filter - Show category food filter(Default hidden)
    • menu_filter="hide"
    • menu_filter="show"
  • show_count - Show Menu/Category count, Select 'yes' to enable
    • show_count=""
    • show_count="yes"
  • active_filter - Active special menu filter instead of "All", enter slug of category to active
  • filter_style - Menu filter style, Select between default and icon style
    • filter_style=""
    • filter_style="icon"
  • hide_ftall - Hide 'All' Filter, Select 'yes' to disable 'All' filter
    • hide_ftall=""
    • hide_ftall="yes"
  • order_cat - Show category food filter with custom order(Default no custom order)
    • order_cat="", not apply custom order
    • order_cat="yes" , apply custom order
  • live_sort - Show or hide sort(Default hidden)
    • live_sort="" - hide
    • live_sort="1" - show
  • >

  • number_excerpt - Enter number of excerpt to show(Default 10), example number_excerpt="20"
  • hide_atc - Hide add to cart button(Default No)
    • hide_atc="yes", enable
    • hide_atc="" ,not enable
  • cart_enable - Enable cart icon or not(Default yes)
    • cart_enable="yes", enable
    • cart_enable="no" ,not enable
  • enable_search - Enable Live Search feature
    • enable_search="yes", enable
    • enable_search="" ,not enable
  • order - Order ascending (order="ASC") or descending (order="DESC")
  • orderby - Choose order condition
    • 'date' - Order by date.
    • 'order_field' - Order by Custom order field.
    • 'sale' - Order by Sale.
    • '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.
    • '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
  • meta_value - Enter a value of meta key to query
  • enable_modal - Enable popup food details, default yes, to disable it: enable_modal="no"
  • featured - Show only Featured food/products, default no, to show only Featured food/products: featured="1"
  • class - add a class name and refer to it in custom CSS

 

Example: Table style with Live Sort and Pagination(click here to view detail demo)

Was this page helpful?