WordPress.org

Ready to get started?Download WordPress

Forums

Link to Articles in the Same Category (6 posts)

  1. dturnbull
    Member
    Posted 8 years ago #

    Is it possible to display the links to articles in the same category as a specific post?

  2. moshu
    Member
    Posted 8 years ago #

    See if this plugin does something similar to what you want:
    http://www.dagondesign.com/articles/other-posts-from-cat-plugin-for-wordpress/
    I know, it's not in another post, just inside the post, but maybe it's a start :)

  3. Dgold
    Member
    Posted 8 years ago #

    For me this code (from Kaf) works at the bottom of my Single.php (Post Template). It's in the template not inside a post. If you want to put it inside a post you might be able to do that using the RunPHP plugin (not positive whether that would work).

    <h2>More <?php the_category(' > '); ?>:</h2>
    <ul>
    <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
    <li><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li>
    <?php endforeach; ?>
    </ul>

  4. Dgold
    Member
    Posted 8 years ago #

    (it posted twice)

  5. moshu
    Member
    Posted 8 years ago #

    Not enough coffee, yet.
    "Inside" was meant to be something different as opposed to "specific post" - you can place the list with the plugin where you want :)
    Sorry for the confusion.

  6. dturnbull
    Member
    Posted 8 years ago #

    exactly what i was looking for :)
    thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic