WordPress.org

Forums

Unknown: is_a(): Deprecated (1 post)

  1. cechmaster
    Member
    Posted 3 years ago #

    I am trying to get a wordpress posts from specific category to show up outside of the install of wordpress by using:

    <?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
    				<h2><?php the_title(); ?></h2>
    				<p><?php the_excerpt(); ?></p>
    				<p><a href="<?php the_permalink(); ?>">Read more...</a></p>
    				<?php endwhile; ?>

    The post shows up, and so does this message:

    Unknown: is_a(): Deprecated. Please use the instanceof operator in /home3/neosaxco/public_html/blog/wp-includes/class-wp-error.php on line 207

Topic Closed

This topic has been closed to new replies.

About this Topic