Error Message
-
Hello All,
Good morning. After upgrading to the latest wp version I am getting this error on my news/blog page
Notice: start_wp is deprecated since version 1.5! Use new WordPress Loop instead. in /home/ocdc.com/wp-includes/functions.php on line 3573
I am using the following code there the above message is showing up
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]<?php $posts = get_posts('numberposts=3&order=DESC&orderby=post_date&category_name=news' ); foreach ( $posts as $post ) : start_wp(); echo "<div class='news_item'>"; toolbox_posted_on(); if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?> <div class="date"><i class="fa fa-calendar-o"></i> <?php the_time('M'); ?> <?php the_time('d'); ?> <?php the_time('Y'); ?></div> <h4> <a>" title="<?php the_title(); ?>"> <?php the_title() ; ?> </a> </h4> <?php //$content = get_the_content(); echo wp_trim_words( $content , '30' ); ?> <?php the_excerpt() ;?> <?php echo "</div>"; endforeach; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Error Message’ is closed to new replies.