Site icon Cody Paste

Recent Post by Category Widget

Here we will see Recent Post by category dynamically, recent post will change on every category according to category id.

So, we will create a widget here.

Simply paste this code in functions.php file of your theme,

Go to -> Appearance -> Widget, here you will find a widget, just drag and drop this widget in widget area.

Note : you can change or update display as you want by using css.

 

 

 

Exit mobile version