• Hello All,

    I am using a “featured section” that will not link to the proper post. When the mouse is hovered over the link, it shows the proper name of the link. When clicked, it takes a user to the first post in the main body.

    How can I remedy this?

    Thank you for any advice.

    Site: grammarama.net

    Main page:

    <?php get_header(); ?>
    
    	<!-- start content -->
        <div id="content">
        	<div class="entries">
    	     <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                query_posts('showposts=' . $limit . '&paged=' . $paged .'&cat=-6'); ?>
                <?php while (have_posts()) : the_post(); ?>
                 <!-- start entry post -->
                 <div class="entry" id="post<?php the_ID(); ?>" >
                    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
                    <div class="entryinfo"><?php edit_post_link('Edit', '', ' |'); ?> Posted by <strong><?php the_author(); ?></strong> | <?php the_time('d M Y'); ?> | <?php the_category(', ') ?> | <?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?></div>
                    <div class="post">
                        <div class="epic">
                        <a href="<?php the_permalink() ?>" rel="bookmark" title="Continue reading <?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("recent"); echo $values[0]; ?>" alt="Continue reading <?php the_title(); ?>" /></a>
                        </div>
                        <div class="etext">
                        <?php the_excerpt(); ?>
    
                        <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>" class="readmore">read more &raquo;</a>
                        </div>
                        <div class="clearer"></div>
                    </div>
                </div>
                 <!-- end entry post -->            
    
                <?php endwhile; ?>
    
            	<div class="clearer"></div>
                <div class="navigation">
                    <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
                    <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
                </div>
            </div>
    
        </div>
        <!-- end content -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Featured Section:

    <!-- start Featured -->
    
       <?php query_posts("showposts=1&cat=6"); ?>
        <?php while (have_posts()) : the_post(); ?>
        <div id="featured">
        	<div id="featured2">
            	<div class="epic">
                <a href="<?php the_permalink() ?>" rel="bookmark" title="Continue reading <?php the_title(); ?>"><img src="<?php $values = get_post_custom_values("featured"); echo $values[0]; ?>" alt="Continue reading <?php the_title(); ?>" /></a>
                </div>
                <div class="etext">
                    <div class="ehead">
                        <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Continue reading <?php the_title(); ?>"><?php the_title(); ?> &raquo;</a></h2>
                        <div class="entryinfo"><?php edit_post_link('Edit', '', ' |'); ?> Posted by <strong><?php the_author(); ?></strong> | <?php the_time('d M Y'); ?> <span> <?php comments_popup_link('0 Comments', '1 Comment', '% Comments'); ?></span></div>
                    </div>
                </div>
                <div class="clearer"></div>
            </div>
        </div>
        <?php endwhile; ?>
        <!-- end Featured -->

  • The topic ‘Featured section not linking to featured post’ is closed to new replies.