How to write a query-function as a query-shortcode?
A shortcode is essentially a trigger that leads to execution of a piece of code in you functions.php file. The only real difference with the code you already have is you don’t print the result immediately, but return it from the function. Also, get_posts is not the preferred way to do multiple loops, as you … Read more