I’d like to include content from one Page (named “contact_text”) to another Page in a specific spot (both of these are WordPress admin pages).
I’ve followed this Stack Overflow thread.
However I don’t believe I can call a PHP function inside a WP Page, much less at the spot I’d like it to appear. Do I need to set up a shortcode for that function in order to use it?
Another shortcode option (add the following to your functions.php). With this one, you have two options. You can query by the post/page ID (will work for any post type), or the page name/slug (only works for pages).
Usage:
By ID:
[show_content id="ID_HERE"]
By Name/Slug:
[show_content page_name="contact_text"]
You could take exactly that code and apply into a shortcode if you want.
You then just type
[show_post path="about"]
to get the about page content.