yes the second site isn’t a wp install.
what i did was the following
i posted the folowing code at the top of my page
<?php
/* Short and sweet */
define('WP_USE_THEMES', false);
require('http://www.iammikerodriguez.com/wp-blog-header.php');
?>
<?php
require('http://www.iammikerodriguez.com/wp-blog-header.php');
?>
then in the area where i want my latest post to show, i pust the following code
<?php
require('http://www.iammikerodriguez.com/wp-blog-header.php');
?>
<?php query_posts('showposts=3'); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><br />
<?php endwhile;?>
and what i get is an error say:
Fatal error: Call to undefined function query_posts() in /home2/restles2/public_html/mike/index3.php on line 153
check it out for yourself
http://www.mikerodriguezdesigns.com/index3.php
help please!
thanks in advance!
<?php
/* Short and sweet */
define('WP_USE_THEMES', false);
require('./wp-blog-header.php');
?>
and
<?php
require('http://www.iammikerodriguez.com/wp-blog-header.php');
?>
are two different code examples. Use 1 at the start of the page but not both. Then try just using:
<?php query_posts('showposts=3'); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><br />
<?php endwhile;?>
i’m still getting an error
Fatal error: Call to undefined function query_posts() in /home2/restles2/public_html/mike/index3.php on line 144
this a pretty frustrating! lol
what can i do to get this going?
btw thanks for the help! i really appreciate it!
thanks!!
I personally would just use simplepie to pull the latest entry from and RSS feed.
i’ve never heard of simplepie. How does it work?
Is there anyway to do this without simplepie?
anyone?
Thanks in advance
http://www.corvidworks.com/articles/wordpress-content-on-other-pages
these instructions worked perfectly (I modified a bit to show my latest 10 posts, with date and stuff) on my non-WP site here:
http://thevoodooempire.com/blog.php