Hello all,
I have a website where what I want to do is just show the titles and link to those posts on all pages. I do not care if I’m looking at a specific post or page. What is happening is that on the homepage it is showing all the titles, but when I click on one all disappear except for the page I’m looking at. Can someone help me revise this?
Also, ideally I would like to show a maximum of 50 articles (not sure I’ll make it to there, but if someone could throw that in that would help). Currently this is what my code looks like in the footer.php.
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; else: ?>
<?php endif; ?>