Hey everyone, I built a simple tag page that displays both pages and posts since I am also using the Page Tagger plugin.
The only problem that I am having is that I need to disable the titles on all of the pages that are displayed, but not the posts. Like this:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
//if the output is a post
<h1 class=”phead”><?php the_title(); ?></h1>
//if the output is a page
Anyone have any ideas? Any help would be appreciated, thanks.
- The topic ‘Customize tag page that displays pages and posts’ is closed to new replies.