I'm trying to accomplish something that is way above my head and involves php and the database. Chances are I don't have the knowledge to do it, but I'm trying.
The simplest thing is to create a custom page template so I can insert php code into a page. I've tried several ways, but I can't seem to place the php in the correct location to actually display withing the content area. I can get it above. I can get it below.
<?php
/**
* The Template for displaying all single pages.
*/
get_header(); ?>
<?php
/* Run the loop to output the pages.
* If you want to overload this in a child theme then include a file
* called loop-page.php and that will be used instead.
*/
the_post();
get_template_part( 'loop', 'page' );
?>
<?php get_footer(); ?>