Hi I’m new to WordPress and still finding my way around. I’ve created a html mockup of the illustrator site in divs with css and now I want to add the content dynamically.
First off I chose to put the positioning statement text in a “pages” page rather than a post. I’ve been reading through the docs and can’t seem to find the template tag I’m looking for. Any help would be much appreciated.
So, I believe you want to grab the content of a page and output it in a certain location? This is possible by creating a new WP-Query class, but this does mean you’re making an extra database request, so use sparingly.
// Create second WordPress loop
$page_content = new WP_Query( 'pagename=page-slug' );
while( $page_content->have_posts() ) : $page_content->the_post();
// Your content output goes here
// Don't forget to reset the post data!