Support » Plugins » Shortcode to Display posts for category

  • Hello,

    I’m trying to create a shortcode that displays the blog posts for a certain category. For example on my site I have foods, places, nature, and etc. So I’m trying to write a shortcode that would look something similar to this [blogposts cat="foods"] to display the blog posts for foods.

    I did some research and I see plugins for this but I’m really trying to accomplish this without using any plugin. I came across QP_query and the loop I tried using that but didn’t have much luck.

    I figured I’d ask here because I’m pretty sure someone should have written some code that accomplishes this.. Thank you for any help!

  • The topic ‘Shortcode to Display posts for category’ is closed to new replies.