WordPress.org

Support

Support » How-To and Troubleshooting » How to show posts from current category in a widget.

How to show posts from current category in a widget.

  • Hello. This is something I’ve been wanting to do for a long time but haven’t found an exact command for.

    Say I have a post in category “Slow Cooker Recipes.” I want to put a widget on the sidebar that shows other posts in that same category. Then say there’s a post in category “Vegan Recipes.” I want the widget to display other posts in its category.

    What code do I use? I know I will need a plugin to enable PHP coding in the widget. But what code do I use in it?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to show posts from current category in a widget.’ is closed to new replies.