loop problem in old plugin
-
Ok, I’m trying to get this “Featured Posts List” plugin to work in 2.7. Should this work in 2.7? I can echo the $list value inside the foreach loop. But past that, it won’t work. This isn’t my code. just trying to get it to work. Thanks.
foreach ($posts_idarray as $list){
echo $list;
$post = new WP_Query('p='.$list.'');
$post->the_post();
$post_title = stripslashes($post->post_title);
$permalink = get_permalink($post->ID);
echo $before . '' . $post_title . ''. $after;
- The topic ‘loop problem in old plugin’ is closed to new replies.