Try
<?php echo $post->ID ?>
instead of &$wp_query->post->ID
Thread Starter
dttn
(@dttn)
Thanks! I wasn’t aware that there’s an option for that in the admin cp.
Thanks again.
I added
<?php foreach($posts as $post) :?>
<?php endforeach; ?>
and everything works the it should.
this is the code I use
<?php foreach($myposts as $post) :?>
<ul><li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li></ul>
<?php endforeach; ?>
<?php foreach($posts as $post) :?>
<?php endforeach; ?>
Thread Starter
dttn
(@dttn)
Thread Starter
dttn
(@dttn)
Yes seems like the problem in the ticket is the same as mine