WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Links in posts only clickable in single post view? (3 posts)

  1. 3stripe
    Member
    Posted 8 years ago #

    I've just done a lot of hunting/thinking but still can't figure this out.

    If you look at http://www.tonguengroove.co.uk/content/downloads, none of the mp3 links work. But if you click on one of the post headings to see that post on its own, the link works...

    The loop on the download page goes like this

    <!-- create mp3 listings-->
    <?php $my_query = new WP_Query('category_name=MP3s&showposts=10'); ?>
    <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <div id="mp3">
    <h2 id="post-<?php the_ID(); ?>">
    <?php the_title(); ?> / <?php echo get_post_meta($post->ID, 'DJ', $single = true); ?></a></h2>
    <div id="mp3link"><?php the_excerpt(); ?></div>
    <div id="mp3description"><?php the_content('', '', true); ?></div>
    <?php the_date('d/m/Y', '<div id="time">', '</div>'); ?>
    </div>
    <?php endwhile; ?>
    <!-- create mp3 listings-->

  2. moshu
    Member
    Posted 8 years ago #

    Read about <?php the_excerpt(); ?>
    Template_Tags/the_excerpt

  3. 3stripe
    Member
    Posted 8 years ago #

    Thanks mosh :-D

    (Please excuse me, haven't done any wordpressing for 6months)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.