There’s at least 3 options:
- You could take the code for the native recent posts widget and
modify it in your child theme to work with your custom taxonomy. - You could create a new
WP_Query
using the tax parameters. - Or you could use a filter
widget_posts_args
to modify the default output of the native recent posts widget so it outputs your custom taxonomy.
I suggest you look into the core and find the native recent posts widget or category widget and take a look at the code. Try wp-includes/default-widgets.php.
Related Posts:
- Update widget form after drag-and-drop (WP save bug)
- How do register_sidebar() and get_sidebar() work together?
- Custom taxonomy: same terms, but for different years
- Widgets vs. Theme Mods
- Widgets not working in Customizr but working in Appearance
- Get the sidebar ID in which the current widget was dropped
- How Can A Widget With Only One Instance Be Defined?
- get_terms return errors
- How to exclude certain widget from showing up on home/front page? [duplicate]
- Customise search form in the Widget
- How to show only Standard Format post in my custom taxonomy page -wordpress 3.8.1
- Reproducing hierarchical list output from wp_list_categories(), using get_categories()
- Fast way to add countries as a custom taxonomy term?
- Schedule cron event from widget
- Is there a filter hook that I can use to change how taxonomy term names are displayed?
- register_sidebar ‘after_widget’ on custom-built widgets not implementing, caused nested widgets
- Add ‘Right Now’ widget to custom dashboard
- Show Custom Taxonomy Slug(s)?
- Count widgets of a certain type
- Widget Javascript code (ajax)
- Custom widget select options needs to stay selected after save
- Custom Widget form function common elements
- Updating Widget options in custom install.php
- Custom Taxonomy Archive not displaying entries
- Exclude custom taxonomy tag from loop
- Hide custom field if empty
- Modify a theme to insert custom widgets?
- Filter posts by custom taxonomy terms
- How did I enable atom feeds in a fresh WP3 install?
- How to update preview when custom setting changed in my custom widget
- Child Theme – how to add new widget on a specific place?
- Function to remove archive sidebar for custom taxonomy?
- Warning: Creating default object… when altering Customize panels
- Automatically check parents (in a taxonomy) when child is selected
- Adding custom field in all widgets, but at the top of the form, in admin area
- How do I change the markup only of a built-in widget?
- Is it possible to make widget return only data (eg, array)?
- How to add textarea field to taxonomy (tag)?
- Allow a Widget to be used one time only?
- How can I get the custom post type assigned to a current custom taxonomy for query?
- Search widget will search everything in the site, how to limit to only search gallery name
- wp_query get post custom taxonomy in search.php
- Disable widgets in customizer for sidebar
- Unable to edit the “customize” section and the “widget” section is populating unknown code
- Choose sidebars column in widgets.php page [closed]
- Can’t receive $args[ ] to my custom widget
- Organizing the position of widgetized areas in the backend
- how to convert Html block to dynamic widget?
- I’d like to move the Widgets Panel to the bottom of the list in Customizer
- How to get every custom taxonomy names and urls?
- Get Custom Taxonomy Terms by Date
- Create small dashboard widget
- Display specific Taxonomy Term from Custom Post Type
- Widgets won’t save
- Customizing the Widget content markup
- Echo the Last Child Taxonomy only (not parents)?
- How to query term_id of a Custom Taxonomy by name
- Customize Widget Navigation
- Add custom border across footer widget area
- How to show parent taxonomy using get_the_terms?
- wp_insert_post custom taxonomy multiple Category not added
- query variables for custom taxonomies
- If Term Name Exists, Append a Unique ID to Slug
- Display all subterms of a custom taxonomy filtered by parent terms
- My list of terms of custom taxonomy displays 7 times
- Customize section does not show my widget areas
- Widget recent comment filter by post meta_value
- Display Custom Taxonomy Name As A Shortcode
- Taxonomy template is not reading
- How could I change contact details in the footer?
- Make Widget appear on Dashboard
- URL issue after setting up Custom Structure in Settings >> Permalinks
- How to assign a default/priority taxonomy to be shown in url in case two taxonomy items are selected
- How to narrow the area between buttons on Helium theme sidebar? [closed]
- How to hide or remove a custom widget area when empty
- Execute function with jQuery if widget added or removed?
- Post filter with multiple checkbox taxonomy terms
- Combine Categories & Custom Taxonomy
- Still desperate about multiple TinyMCEs in widgets – is there any good solution to this yet?
- Custom dropdown search form that allows users to select option B based from Option 1
- Custom Admin Section
- How to define active widget with js in a customizer
- issue with saving custom metaboxes fields
- Taxonomy template by post type
- How to loop through 1 CPT with 2 Taxonomies
- Confused about customising widgets
- Special characters showing in fallback font
- Custom terms in custom category taxonomy
- How to setup a taxonomy that can have only one post assigned to it?
- customize footer widgets area
- Grouped custom taxonomy query
- Create advanced portal website with sections – taxonomy usage?
- Custom Query for Taxonomy
- Adding a third custom taxonomies
- How do I include the sidebar (with Widgets) in a custom theme?
- Hover Hide-Visible Additional CSS not working in WordPress website, but shows properly in Customize window
- Add a custom field for sorting the products in a specific category WOOCOMMERCE – Second try
- Taxonomy question how to add more data
- How to get a custom taxonomy slug in body classes
- Multiple wp.editor in a custom widget using JQuery