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?
- Is there any sort of theme dependency management?
- Plugin upgrading: Widget settings
- wp_enqueue_scripts not working in custom theme
- What is the correct way for a theme to support plugin UIs?
- Need to create a Theme demo site that features multiple themes
- How to call “page specific menu items” in template [closed]
- Create WooCommerce Product Category Programmatically
- Override dynamic_sidebar() in plugin?
- How do I make my wordpress page more friendly for mobile viewers?
- How to place random widgets in the WordPress sidebar?
- WordPress Enqueue Script Chaos (jQuery & Foundation.js)
- login to wordpress with Get variables instead of Post
- Should I add sharing buttons using a plugin or directly in my theme files?
- Check javascript file Proper way in functions.php
- register child class in another plugin
- Should I use RIPS tool to test my themes and plugins?
- How to Build a Movie Library in WordPress 3.x
- Flickr plugin that will display photos from multiple group pools? [closed]
- Having separate plugins and themes folder for multi-site setup
- How can I get full attachment url from wp_get_attachment_metadata?
- unzip a folder on specific location and delete the zip file
- gallery option is not available in media upload box in costum theme option page
- Why are some of my thumbnails not being generated?
- Why is the Settings API is not saving my array of options
- Built in audio player?
- Network: retrieve a list of latest posts
- WAMP to XAMPP WordPress transfer
- WooCommerce get_price returning wrong price when used via ajax
- Open Post Thumbnail in New Child Theme File in WordPress
- How to style the RSS wordpress?
- How to display more than one instance for a widget?
- 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?
- What are the specifics of WordPress development I need to know? [closed]
- WordPress shows error related to allow_url_fopen
- Widgets Scripts don’t load – but load when I reload the page
- How to create a code editor for my plugin .?
- How to show only next post pagination link using wp_link_pages()
- How can I inject options into an select tag inside the widget form?
- wp_footer hook only working on homepage not in other pages
- Jquery NoConflict Problem
- How do I find out what is in control over a certain part of a website?
- How do I combine a theme with a plugin
- how to force tag page layout to use same as search layout?
- Sidebar widget: Randomly select text from a given set
- Great blogs site resources/tutorial for WordPress Developers? [closed]
- How do I use add_action on custom widget?
- Exclude posts from widget while post is showing on home, single and categories
- How to multiply a post to test internal search results?
- Use different single.php file based on condition
- How can I support plugins in a custom theme?
- Redeclare function after plugin activation
- Woocommerce singe product custom gallery output works just on the first slide
- Remove Pagination for Product Category Pages WooCommerce
- strange shortcode error: does shortcodes requires any dependency?
- All custom widgets are not showing in widget area at the same time
- How can I use my custom wordpress theme on two websites? [closed]
- How to customize this theme? [closed]
- get_term_meta returns false in widget
- Methods for development wordpress themes [closed]
- Don’t load the theme for a page FROM a plugin EDITED
- Remember the Meta Value With Radio Buttons
- My widget won’t update its values when save is clicked
- WordPress plugin with its own “site”/theme
- Theme Functions run a function upon activation or preview
- Extend a plugin to include a widget option
- Seperate plugin and theme files
- Table of contents (TOC) plugin is not showing header tag
- Elementor Sidebar not loading when PRO elements plugin is active
- How would I get the new plugin version on this function?
- How to fetch WordPress database values in JavaScript widget
- What is the right way to populate a dropdown from MySql?
- How to get checkbox by default true in metabox?
- When the user entered an unauthorized url redirect to login page
- Show content from plugin on index
- How to display widget in front end?
- Widget outputs the value but doesn’t save anything inside the textarea
- WordPress Widget: Is it possible to make the form dynamic without updating?
- Using Widget Logic to place menu on multiple pages?
- Get plugin to background of page
- Show widget location borders for development
- Cannot access variables within a widget
- adding image in the header of my dev widget
- Directory structure for plugin changes
- How to show post attachment image
- Plugin: Unable to Save the Image Alignment Option to Display in the Widget in the Sidebar
- What are the downsides of using bootstrap in plugin development?
- How to generate a responsive output from plugin?
- How to work email subscribe in WordPress?
- How to create post comparison in wordpress
- Open graph issue on my theme
- Editing a theme
- Am having issues intergrating this api into my wordpress site, any help please?
- Is website for online game guides doable in WordPress? [closed]
- How can I add a zip code service availability checker in WordPress without Woocommerce? [closed]