Integrating WP into existing site
-
Hi Folks,
I’ve followed these instructions, wanting to have a WP blog show up in my site, and am not having any luck. Here is my result:
https://www.fionnafloral.com/blog.php
The blog itself is here:
https://www.fionnafloral.com/blog/
At the top of the static page I’ve pasted:
<?php define('WP_USE_THEMES', false); require('blog/wp-blog-header.php'); ?>
The loop code I’ve pasted into the body of the static PHP page above is:
<?php if ( have_posts() ) : // Start the Loop. while ( have_posts() ) : the_post(); /* * Include the post format-specific template for the content. If you want to * use this in a child theme, then include a file called called content-___.php * (where ___ is the post format) and that will be used instead. */ get_template_part( 'content', get_post_format() ); endwhile; // Previous/next post navigation. twentyfourteen_paging_nav(); else : // If no content, include the "No posts found" template. get_template_part( 'content', 'none' ); endif; ?>
Suggestions most appreciated! Thanks, Dan
- The topic ‘Integrating WP into existing site’ is closed to new replies.