• I’ve been using this as an introduction to WordPress; however, I ran into trouble as I was customizing my index.php file. When trying to use php to post a permalink, I’m getting this:

    http://skaramouche.awardspace.com/”http://skaramouche.awardspace.com/?page_id=2″

    instead of this:

    http://skaramouche.awardspace.com/?page_id=2/

    The same sort of error is happening with the call for the title of the links. Here is my index.php:

    <?php get_header(); ?>
    <div id="content" class="narrowcolumn">
    <?php if (have_posts()) : ?>
    <h3>About</h3>
    <?php query_posts('pagename=about'); ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post"><?php the_excerpt(); ?></div>
    <?php endwhile; ?>
    <?php endif; ?>
    <a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
    <span class=”more”>More...</span></a>
    <h3>Services</h3>
    <?php query_posts('pagename=services'); ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post"><?php the_excerpt(); ?></div>
    <?php endwhile; ?>
    <?php endif; ?>
    <a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
    <span class=”more”>More...</span></a>
    <?php else : ?>
    <h2 class="center">Not Found</h2>
    <p class="center">Sorry, but you are looking for something that isn't here.
    
    <?php include (TEMPLATEPATH . "/searchform.php"); ?>
    <?php endif; ?>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘‘the_permalink’ not working…’ is closed to new replies.