• Here is the code:
    I added the echo $list to see if it was getting that far. It does echo the two numbers I had stored as post ID’s that I wanted in this list. But, it doesn’t show the post titles/link. The output html is below the code. I know a little php, but I don’t know the wp code to know what is or isn’t right. 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 . '<a href="' . $permalink . '" rel="bookmark" title="Permanent Link: ' . $post_title . '">' . $post_title . '</a>'. $after;
    
    Output:
    12<li><a href="" rel="bookmark" title="Permanent Link: "></a></li>18<li><a href="" rel="bookmark" title="Permanent Link: "></a></li>
  • The topic ‘[Plugin: Featured Posts List] Not working in 2.7 Need Fix’ is closed to new replies.