Errors after following instructions to include links outside WP
-
Page in question (toplevel) here:
https://kickasswebdesign.com/testindex.phpI read all the posts and codex articles I could find to include WP stuff in a static html page outside of WP. WP is located here:
https://kickasswebdesign.com/wordpress/I included this at top of my site’s testindex.php page:
<?php
require_once("https://kickasswebdesign.com/wordpress/wp-blog-header.php");
?>(/wordpress/wp-blog-header.php” keeps cutting off in the above code when I post, but it is there in the file. I tried a relative url but it would result in page with nothing but an error)
This is the code to call the last 5 article titles that’s in the rightcol of the layout under the links-
<ul>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php wp_get_archives('type=postbypost&limit=5'); ?>
<?php endwhile; else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?><?php endif; ?></ul>
Obviously it isn’t working. Any suggestions?
- The topic ‘Errors after following instructions to include links outside WP’ is closed to new replies.