Two advanced widgets: WK_trem working with categories, post_tag or any taxonomies; WK_posts works with posts, pages and any other type of records.
Author: | Yuriy Stepanov (stur) (profile at wordpress.org) |
WordPress version required: | |
WordPress version tested: | 5.8.3 |
Plugin version: | 2.0 |
Added to WordPress repository: | 26-07-2014 |
Last updated: | 15-01-2022
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | http://bugacms.com/wpEn/whale-kit |
Total downloads: | 1 204 |
Active installs: | 10+ |
Click to start download
|
The plugin adds 3 shortcodes:
[wk_terms /] for displaying categories, tags, any other taxonomies, works through the WP_Term_Query class.
[wk_posts /] for displaying posts, pages and any other post types, WK_posts receives data through the WP_Query class
[wk_pages /] output of hierarchical structures of pages, posts and other types of posts, the data is obtained using the get_pages() function
Shortcodes pass all call parameters to the corresponding functions and receive the initial data set from them.
Explore the basic parameters of calling source functions by following the links.
Whale Kit
Whale Kit – examples
Whale Kit – по русски
Screenshots
Add default widget-shortcode
Categories tree
Pages tree
Use as a shortcod
FAQ
Show child categories from the category My_Category id:34
[wk_terms child_of=34]
Show all categories and empty too
[wk_terms hide_empty=0]
Exclude a category 32 and all childs
[wk_terms exclude_tree=array(32)]
Sort categories by number of posts without hierarchy
[wk_terms orderby=count order=ASC show_count=1 hierarchical=0 /]
Collapse categories
[wk_terms collapse=1 hierarchical=1]
The collapse of the inactive branches of the tree of categories.
Display tags and specify the number of records
[wk_terms taxonomy=post_tag show_count=1]
Show category and set the font size depending on the number of entries in the category
[wk_terms show_count=1 size_of_count=1 smallest=8 largest=22 unit=px]
Show 5 records out of category id:56, exclude category id:23
[wk_posts cat=56,-23 posts_per_page=5]
Show entries with thumbnail
[wk_posts meta_key=_thumbnail_id show_thumbnail=60?60 /]
Multiple Custom Field Handling
[wk_posts
tax_query=’array(
“relation”=>”AND”,
array(
“taxonomy” => “category”,
“field” => “id”,
“terms” => array(16)
),
array(
“taxonomy” => “post_tag”,
“field” => “slug”,
“terms” => array(“test_wk”)
)
)’
/]
Show child pages to 567 pages
[wk_pages child_of=567]
Collapse and sorting pages
[wk_pages collapse=1 sort_column=menu_order sort_order=ASC]
ChangeLog
1.0
1.0.1
- Fixed bug
division by zero
in the calculation of the font size.
1.1.0
WK_Pages added to work with hierarchical structures. Added ability to display thumbnails of records.
2.0.0
Widgets removed, use default widget shortcode.