BuddyDev

Taxonomy Posts List

Taxonomy posts list plugin allows you to list posts from a category, custom taxonomy or custom post type using a simple shortcode on your WordPress based website.

What you can do with this plugin:-

  • List all posts from a category inside  a post
  • List limited no. of posts from a category inside a post
  • List all custom post types inside a post
  • List all attachment(currently, lists all attachments and is not much helpful)
  • List all/limited number of posts from any taxonomy
  • Lists all/limited no. of posts from any taxonomy, custom post type

My goal with this plugin was to make it super simple to use. Here is how do you use it. You can use any of the three shortcodes whichever you like to list the posts  [category_toc], [term_toc] or [taxonomy-posts-list] .  I personally prefer the first one for post categories and last one while using custom taxonomies. These three are exactly same and just aliases. I was not sure which one sounds better, so created three aliases. Here are the various options available with the shortcode.

Shortcode Options:-

  • max: [optional] maximum no of posts to list, you can use it like max='5' to list 5 posts. If you do not specify, all posts for the taxonomy/post type will be listed depending on below conditions
  • term: [optional] The category or taxonomy term slug. eg. term='love' to find all the posts tagged in category love. If you do not specify a term, the first term from the current post will be taken.
  • taxonomy: [optional] You can specify custom taxonomies like events like this taxonomy='events', By default, the taxonomy is set to be post categories.
  • post_type: [optional] You can specify the posts from which post type which should be listed. By default, It is set to the post type of current post.
  • post_status: [optional], You can specify the post status, default is 'publish'
  • wrapper : [optional] default value is 'ol' for numbered list, use 'ul' for unordered list

Screenshot:-

 

Release History

  • Version: 1.0.1

    Monday, 28 June, 2021
    • Tested With: WordPress 5.7
    • Compatible With: WordPress 3.0+

    Updated to fix the terms error and cleanup.

  • Version: 1.0

    Wednesday, 21 August, 2013
    • Tested With: WordPress 3.6
    • Compatible With: WordPress 3.0+

    Initial release