Photos not showing on static php page
-
I have used the below code to call the most recent posts on a static php homepage. Everything works great, but it will not show any photos that are in the posts.
[code]
<?php
$posts = get_posts('numberposts=10&order=DESC&orderby=date');
foreach ($posts as $post) : start_wp(); ?>
<p class="title"><?php the_date(); echo "
"; ?></p>
<h2> " rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></h2>
<?php the_excerpt(); ?>
Main Link to: " rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?>
<?php
endforeach;
?>[/code]Is there some code I am missing? Also is there a way to call a certain page id to be shown on the same page as well? I am sorry for all the questions, I am relatively new to wordpress and php. Any help would be awesome. Thanks,
Jake
- The topic ‘Photos not showing on static php page’ is closed to new replies.