I’d start with a basic widget tutorial.
From there, I’d add a dropdown on the widget back end that lists out all the categories, so you can select from existing categories.
Then on the widget front end, I’d do a WP_Query to pull a specific number of posts from that category. With posts selected, do a foreach loop to display the <li>
with link and title. Depending on your scenario, you might also want to allow the admin to choose that limited number in the widget back end, or you might just want to hard-code it to show, say, 7 posts at maximum.
Give it a try and then if you’re having specific issues post your code as an edit to the original question for a bit more guidance.
Related Posts:
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Add SideBar/Widgets Just Below the Post
- Widgets are not displaying in the admin panel
- twitter widget loads properly in all themes except my own theme?
- Do widget options need to be escaped widget()?
- Display post lists in 2nd paragraph
- Ajax contact form widget plugin data not insert in database
- wp_get_post_terms is difference obj model than the one in rest api response
- How to add media field to WP_Widget form function?
- how to add a button next to the wordpress view button?
- changes to widget settings not showing up in individual pages pages until they’re updated [closed]
- Classified ad website : which solutions to use? [closed]
- How to hide CSS by default and show on button press
- How to remove traces from widget during uninstallation
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- Best place for short bio,image and button [closed]
- What are the specifics of WordPress development I need to know? [closed]
- Which widget to use for display category post with view more? [closed]
- WordPress Widget Not Saving Data
- Calendar Plugins – Featured Widget [closed]
- In the archive widget, how do I sort in between two years?
- WordPress shows error related to allow_url_fopen
- Widgets Scripts don’t load – but load when I reload the page
- WordPress plugin subscribe2 not looking the same as before migration
- How to create a code editor for my plugin .?
- How to show only next post pagination link using wp_link_pages()
- Finding the URL to be used to check if plugin is installed with a theme
- Wysiwyg editor errors
- How to make WordPress customizable for clients
- Setup page on first login on multisite
- How can I inject options into an select tag inside the widget form?
- Add content to footer – above wp_footer
- How to add wp visual editor in a custom widget?
- Js file is not adding using this code in functions.php
- How to get my plug-in, wrote in php, to refresh on its own every 5 minutes?
- wp_footer hook only working on homepage not in other pages
- How can I position ShareThis buttons manually when using the plug-in? [closed]
- WordPress Widget – Saving multidimensional arrays into $instance
- Custom plugin appears outside of the sidebar container
- Conditional tag in Widget Logic for checking if top level page or if subpage
- Char limit on custom blog-post form? [closed]
- Trying to create a table/list of my EventBrite course listings [closed]
- How do I use wp_editor() in widget form?
- How to reorder and display a feed to be chronological?
- Hide certain widgets from specific user roles in admin
- Plugin can not display in my custom theme
- How to use get_template part in the plugin?
- Jquery NoConflict Problem
- Redirect to another page using contact form 7? [closed]
- How to add Wrapper Div/container element around WordPress Widget Content
- Overriding Parent Theme… will cause plugins failure?
- Disabling plugin but wpenqueue is not available
- Related posts widget or plugin needed
- How do I find out what is in control over a certain part of a website?
- WordPress premium theme development [duplicate]
- How do I combine a theme with a plugin
- how to force tag page layout to use same as search layout?
- How can I show a different theme for admin users? WP 3.8+
- Problem since update 3.5 [duplicate]
- Call plugin with php function
- How to disable a widget when dependent plugin is inactive?
- Sidebar widget: Randomly select text from a given set
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- Best practice for including plugin output in a template without using shortcode?
- How do I use add_action on custom widget?
- How to show the number of website visitors in my theme
- How to write “alt” tag in image for wordpress code?
- How can I delete a wordpress widget instance?
- Repeated Output in Widget
- Exclude posts from widget while post is showing on home, single and categories
- Custom widget doesn’t save values from dropdown box
- Register Script in Plugin Widget
- WordPress Apply filter in plugin causes 500 internal error
- Add Shortcode tag in Widget/Sidebar
- multiple language website navigation menu suggestion
- How to multiply a post to test internal search results?
- Use different single.php file based on condition
- How to create wordpress widget that is fixed position on the home page
- Saving widget options from class method
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- Short messages widget [closed]
- Widget’s container?
- Customizing Titles on the Fly with Code
- Add filter on html tags,attributes on specific function in wordpress
- plugins not working in custom theme
- Release the plugin in the WordPress repository where redux is used
- PHP Warning: Declaration of aec_contributor_list::form() should be compatible with WP_Widget::form($instance)
- Creating a widget and missing jQuery
- Shortcode Attributes to Return different $_POST
- What form should the $query media query array have for an Elementor page builder function? [closed]
- How can I support plugins in a custom theme?
- How to use the CSS of the WordPress core in the development of my administration page?
- Redeclare function after plugin activation
- is_rtl returns false while it should return true
- Include Minit plugin in theme [closed]
- Woocommerce singe product custom gallery output works just on the first slide
- What is the purpose of a companion plugin
- jQuery Click event is not fired at all
- Remove Pagination for Product Category Pages WooCommerce
- Managing wordpress Themes & plugins for multisite