• Resolved volleybum

    (@volleybum)


    Hi, I’m trying to tweak the Simple T photoblog theme by Taly. I’ve pasted my index.php code below. I have it pretty much the way I like it at this point, with one exception. On index.php the code in <div class=”posted”> is supposed to display the following post information: the ID, the date, the category, the popup comments link, “previous” and “next” navigation, and a link to my thumbnails page. This theme uses the “custom posts per page” plugin, and displays only one post per page. On my index page (the page that contains the most recent post), all of the information within <div class=”posted”> gets displayed EXCEPT FOR the “previous” and “next” navigation links. You have to click on the actual posted photo in order to move to the previous post. Similarly, on pages containing previous posts, all of the information within <div clas=”posted”> is displayed EXCEPT FOR the popup comments link. I’d like to display everything within <div class=”posted”> regardless of which page/post is being called up. I think the key lies within the code above <div class=”posted”>, which starts with <?php global $post, $tableposts;….etc. If anybody can help me figure out how to do what I’m trying to do, I’d be very grateful. Thanks!

    <?php get_header(); ?>
    <!– begin post –>
    <?php if (! empty($display_stats) ) { get_stats(1); echo “”; } else if (($posts & empty($display_stats)) ) : foreach ($posts as $post) : start_wp(); ?> <div class=”entry”>

    <?php global $post, $tableposts;
    $previous = @$wpdb->get_var(“SELECT ID FROM $tableposts WHERE post_date < ‘$post->post_date’ AND post_status = ‘publish’ ORDER BY post_date DESC LIMIT 0, 1”);
    if ($previous) {
    $link = get_permalink($previous);
    echo ‘‘ . $post->post_content . ‘
    ‘;
    } else {
    the_content(‘[More Photos]’);
    } ?>

    </div>

    <div class=”posted”>? <?php the_ID(); ?> // ” title=”Permalink”><?php the_time(‘M j, ‘y’) ?> / <?php the_category(‘, ‘); ?> / <?php comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
    <?php previous_post(‘%’, ‘Previous’, ‘no’); ?> <?php next_post(‘%’, ‘/ Next’, ‘no’); ?> / thumbnails <?php edit_post_link(‘/ edit’,'<span class=”editlink”>’,'</span>’); ?>

    </div>

    <!– <?php trackback_rdf(); ?> –>

    <?php endforeach; else: ?>
    <b> <h2 class=”center”>Sorry! Apparently this page doesn’t exist.</h2> </b>

    <?php endif; ?>

    <!– end post –>

    </div>

    <?php get_footer(); ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Help with Simple T photoblog theme’ is closed to new replies.