• I know it is very difficult to achieve more than one blog on a site without breaking page navigation. Is there any way we could have something link to the most recent page in a category, so that they are redirected to an archive or something, achieving a similar effect to multiple blogs?

    https://www.paranoidonion.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • not sure if this is what you are asking, but have you tried a page template that has queries the posts in that category? for instance;

    <div id=”currentBox” class=”eventBox” role=”main”>

    <?php if (have_posts()) : ?>

    <?php query_posts(‘category_name=events&showposts=3’); ?>

    <?php while (have_posts()) : the_post(); ?>

    <div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>

    <h2>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?>
    <?php if ( get_post_meta($post->ID,’event’) ) : ?>
    <p><?php echo get_post_meta($post->ID,’event’, true); ?></p>
    <?php endif; ?>
    <?php if ( get_post_meta($post->ID,’event_img’) ) : ?>
    <p><?php echo get_post_meta($post->ID,’event_img’, true); ?></p>
    <?php endif; ?>
    </h2>

    <div class=”entry”>
    <?php the_content(); ?>
    </div>

    </div>

    <?php endwhile; ?>

    <?php endif; ?>

    <?php wp_reset_query(); ?>

    so you enter the category in place of where mine says “events“&showpost(3 or the number of latest you want to display)

    Thread Starter paranoid-onion

    (@paranoid-onion)

    When I put that in it made the page not work.

    I’ve tried just reposting the code before and replacing the category number, but the paging is ruined when I do that. Since I will be posting web comics, I want them all to be viewable with the next, previous, first, last, etc. buttons. It just seems paging is my major obstacle here. I want a category too be navigatable, so you can view one category without any of the other ones showing up and navigate all of the pages filed under that category.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘linking to a recent post in a specific category’ is closed to new replies.