• Resolved Accurate Web

    (@accurate-web)


    Hi. Don’t know what I did but now my frontpage post is all Permalink. Not just the Title. Check out the site at http://www.outdooradvantageonline.com

    Here’s my code:

    <div id="left-column">
          <?php if (is_home()){query_posts("category_name='frontpage'");}?>
          <?php if (have_posts()) : ?>
          <?php while (have_posts()) : the_post(); ?>
          <div class="post" id="post-<?php the_ID(); ?>">
            <h2>
              <? if (single_cat_title("", false)!="frontpage"):?>
              <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
              <? endif;?>
              </a><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
              <?php the_title(); ?>
              </a><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
              <? if (single_cat_title("", false)!="frontpage"):?>
              </a>
              <? endif;?>
            </h2>
            <div class="entry">
              <?php the_content('Read the rest of this entry &raquo;'); ?>
            </div>
            <? if (single_cat_title("", false)!="frontpage"):?>
            <? if (is_page("", false)!="pictures"):?>
            <p class="postmetadata">Posted in
              <?php the_category(', ') ?>
              <?php /*?>
              by
              <?php the_author() ?>
              <?php */?>
              on
              <?php the_time('F jS, Y') ?>
              <?php edit_post_link('Edit', '', ' | '); ?>
              <?php wp_link_pages(); ?>
            <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
            </p>
            <? endif;?>
            <? endif;?>
          </div>
          <?php endwhile; ?>
          <div class="navigation">
            <div class="alignleft">
              <?php next_posts_link('&laquo; Previous Entries') ?>
            </div>
            <div class="alignright">
              <?php previous_posts_link('Next Entries &raquo;') ?>
            </div>
          </div>
          <?php else : ?>
          <h2 class="center">Not Found</h2>
          <p class="center">Sorry, but you are looking for something that isn't here.</p>
          <?php include (TEMPLATEPATH . "/searchform.php"); ?>
          <?php endif; ?>
        </div>

    Any help would be appreciated.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Whole post has permalink’ is closed to new replies.