Forum Replies Created

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter guesst

    (@guesst)

    Well, I’ve decided a standard blog format would be better anyways. My programs are too big to be features with news underneath.

    If I ever change my mind I can always switch to comic-press which has managed to accomplish what I’m trying.

    Thread Starter guesst

    (@guesst)

    I must not be expressing myself well. The nav at the bottom of the page (for the news) works just fine.

    Lemme try again. Do you read web comics? (Who doesn’t?) You know how under the web comic there is a nav button for previous comic, first comic, that sort of thing? That’s what I want. But that’s not happening. It happens on individual pages, but that’s a different code base. This code the
    query_posts(‘category_name=Programs”)
    is interfering with
    <?php previous_post_link(‘« « %’, ”, ‘yes’); ?>
    <?php next_post_link(‘% » » ‘, ”, ‘yes’); ?>
    How do I fix it?

    Thread Starter guesst

    (@guesst)

    Dang it, can’t edit posts.

    <?php get_header();?>
    
    <p id="intro">Welcome to Cymon's Games updated weekly with a new program for you to type in and play! You will need a C/C++ complier to type these programs in. Visit the <a href="/getting-started">Getting Started</a> section to find out how to set up your computer.</p>
    
    <?php // Show the latest programs
      query_posts("category_name=Programs"); ?>
    <?php if ( have_posts() ) : the_post(); ?>
    
      <div class="post" id="post-<?php the_ID(); ?>">
         <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    
        <div class="storycontent">
    <p align="center"><?php previous_post_link('&laquo; &laquo; %link', '%title', 'yes'); ?> | <?php next_post_link('%link &raquo; &raquo; ', '%title', 'yes'); ?></p>
           <?php the_content(__('(more...)')); ?>
           <small><p align=right>-<?php the_time('F jS, Y') ?> </p></small>
    <p align="center"><?php previous_post_link('&laquo; &laquo; %link', '%title', 'yes'); ?> | <?php next_post_link('%link &raquo; &raquo; ', '%title', 'yes'); ?></p>
        </div>
    
        <div class="meta"><?php edit_post_link('Edit', '', ' | '); ?>  <!--?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?-->
        </div>
      </div>
    
    <?php endif; ?>
    
    <div id="news"><a title="news" name="news"></a>
    <h1>News and Rants</h2>
    </div>
    
    <?php // Show all not programs...
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    query_posts($query_string."&cat=-3&paged=$paged");
    ?>
    
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <div class="post" id="post-<?php the_ID(); ?>">
      <h3 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
      <div class="storycontent">
        <small><?php the_time('F jS, Y') ?></small>
        <?php if (in_category('4')) : ?>
          <p>Column added. Click <a href="<?php the_permalink() ?>" rel="bookmark">here</a> to read.</p>
        <?php else : ?>
        <?php the_content(__('(more...)')); ?>
        <?php endif; ?>
    
        <div class="meta"><?php edit_post_link(__('Edit This')); ?>
        <!--?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?-->
        </div>
    
      </div>
    </div>
    <br /><hr>
    <?php endwhile; else: ?>
      <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    
    <p align="center"><?php posts_nav_link(); ?></p>
    
    <?php get_footer(); ?>

    Thread Starter guesst

    (@guesst)

    Thanks all for the help. I stayed up all night and I think I’ve made some headway but I’m not quite done yet. So far the “Next Page” at the bottom of the news section works, thank you veronique. Also on individual pages the next/previous works pretty good, however, that works though the main index template (no query_post), not the home.php that we’re using here. On the main page those links don’t show up.

    What I want is for the latest post in the program category (cat=3) to be displayed exactly as it does for the individual pages, you know, with the next, prev, content, everything. At the moment, well, you can see, it shows the latest program, true, but not the next/previous links top and bottom. Then I want, under that, news and rant blurbs as currently implimented. Don’t need to touch that part, but the first part. Can I get an Aargh!

    Here’s my home.php as currently implimented:
    <?php get_header();?>

    <p id=”intro”>Welcome to Cymon’s Games updated weekly with a new program for you to type in and play! You will need a C/C++ complier to type these programs in. Visit the Getting Started section to find out how to set up your computer.</p>

    <?php // Show the latest programs
    query_posts(“category_name=Programs”); ?>
    <?php if ( have_posts() ) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h3 class=”storytitle”>” rel=”bookmark”><?php the_title(); ?></h3>

    <div class=”storycontent”>
    <p align=”center”><?php previous_post_link(‘« « %link’, ‘%title’, ‘yes’); ?> | <?php next_post_link(‘%link » » ‘, ‘%title’, ‘yes’); ?></p>
    <?php the_content(__(‘(more…)’)); ?>
    <small><p align=right>-<?php the_time(‘F jS, Y’) ?> </p></small>
    <p align=”center”><?php previous_post_link(‘« « %link’, ‘%title’, ‘yes’); ?> | <?php next_post_link(‘%link » » ‘, ‘%title’, ‘yes’); ?></p>
    </div>

    <div class=”meta”><?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <!–?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?–>
    </div>
    </div>

    <?php endif; ?>

    <div id=”news”>
    <h1>News and Rants</h2>
    </div>

    <?php // Show all not programs…
    $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
    query_posts($query_string.”&cat=-3&paged=$paged”);
    ?>

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

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h3 class=”storytitle”>” rel=”bookmark”><?php the_title(); ?></h3>
    <div class=”storycontent”>
    <small><?php the_time(‘F jS, Y’) ?></small>
    <?php if (in_category(‘4’)) : ?>
    <p>Column added. Click ” rel=”bookmark”>here to read.</p>
    <?php else : ?>
    <?php the_content(__(‘(more…)’)); ?>
    <?php endif; ?>

    <div class=”meta”><?php edit_post_link(__(‘Edit This’)); ?>
    <!–?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?–>
    </div>

    </div>
    </div>

    <hr>
    <?php endwhile; else: ?>
    <p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p>
    <?php endif; ?>

    <p align=”center”><?php posts_nav_link(); ?></p>

    <?php get_footer(); ?>`
    I have combed through the documentation, found posts of similar nature, and still can’t get it right.

    Is there a way I fool it into thinking it’s a single post for a minute so the next/prev links will work?

    Thread Starter guesst

    (@guesst)

    I’ve clearly got a lot to learn.

    On your first The Loop, it is working correctly.

    No it’s not. What you’re seeing is hard coded into the post. I’ll remove them so as to clear up any confusion for a few days.

    What am I doing wrong. Is it my query_posts? Is it my site all together? Is it my permalinks? I can’t figure this thing out.

Viewing 5 replies - 16 through 20 (of 20 total)