why get post doesn’t work ?
-
<?php
$posts = get_posts('category=25&numberposts=8');
foreach($posts as $post) :
setup_postdata($post);
$post_link = tb_post_thumb(true,$post->post_title);
if ( !empty($post_link) ) {
echo "<a href=\"go.php?id=\"" . <?php the_ID(); . "\" title=\"" . the_title(); . "\"
target=\"_blank\">" . $post_link . "</a>" }
endforeach;
?>there is an error in the echo
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘why get post doesn’t work ?’ is closed to new replies.