Skip to content

mfalkus/wp-recent-per-category

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

wp-recent-per-category

Pretty much the WordPress Recent Posts plugin, but with the option to only show posts in a specific category.

This plugin was the result of wanting to split some of my non-technical posts out of the home page widget I use for recent articles I've put online. I figured two wigets was the answer, one for technical, one for non-technical. WordPress already knows the difference anyway based on the categories I put the posts in, I just needed to utilise this for the display.

Installation

As easy as usual.

  1. Copy the PHP file to your plugins directory.
  2. Enable the plugin from the WordPress dashboard.
  3. Situate the widget in the widget area as you would with the 'Recent Posts' widget.

Styling

Note that if you have custom styles in place for the usual recent posts widget you'll probably need to update them to be applied to this widget. Something like s/widget_recent_posts/widget_recent_per_category/ should be sufficient.

About

A slight adaption on the usual 'recent posts' WordPress widget that allows only showing posts from a select category.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages