Food Grid is a shortcode for displaying food on grid.
[ex_wf_grid column="3" posts_per_page="6" cat=" page_navi="loadmore" menu_filter="show" filter_style="icon" show_count=""]
- style - Select style of grid (Default 1) style start 1 to 4 (example
style="2"
) - column - A number of items to show per line, start 2 to 5. Default 2(Note: with grid style 3 only support 2 and 3 column)
- 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 morepage_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/menu 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"
- 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"
- active_filter - Active special menu filter instead of "All", enter slug of category to active
- order_cat - Show category food filter with custom order(Default no custom order)
order_cat=""
, not apply custom orderorder_cat="yes"
, apply custom order
- number_excerpt - Enter number of excerpt to show(Default 10), example
number_excerpt="20"
ornumber_excerpt="full"
to show full excerpt - hide_atc - Hide add to cart button(Default No)
hide_atc="yes"
, enablehide_atc=""
,not enable
- cart_enable - Enable cart icon or not(Default yes)
cart_enable="yes"
, enablecart_enable="no"
,not enable
- enable_search - Enable Live Search feature
enable_search="yes"
, enableenable_search=""
,not enable
- order - Order ascending (
order="ASC") or descending (
order="DESC"
) - orderby - Choose order condition
- 'date' - Order by date.
- 'sale' - Order by Sale.
- 'order_field' - Order by Custom order field.
- '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