Calling WordPress get_template_part from inside a shortcode function renders template first
问题 I have a page where I need to allow the user to enter a paragraph of text. Then after that text, insert a shortcode that will render a list of posts, then add more free-form text after that. My thought was that they should be able to insert a shortcode which will output the posts. This way they can simply add the shortcode where they wish the posts to appear. I currently have the logic which retrieve the posts separated in its own file. Currently I include it in a page by simply using the get