mister5317
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Fixing WordPress
In reply to: Page Not Found showing in page titleI have gotten this error as well. Anyone know the problem?
Forum: Fixing WordPress
In reply to: Photoblog Single Picture Per PageGot it to work. I could have swore I tried this earlier today…
<?php get_header(); ?> <?php $wp_query->is_single = true; ?> <?php if(have_posts()): ?> <?php while(have_posts()) : the_post(); ?> <?php if(yapb_is_photoblog_post()): ?> <?php $location = get_post_meta($post->ID, 'location', TRUE); ?> <!-- Photograph --> <div id="content"> <div id="photo" class="column16"> <div id="details" class="portrait"> <h1><?php the_title(); ?></h1> <h2 class="subDetails">/<?php the_time('F d, Y') ?> <?php echo !empty($location) ? '/'.$location : '' ?></h2> <div class="navLinks"> <?php previous_post_link() ?> | <?php next_post_link() ?> </div> <p><?php the_content(); ?></p> <?php if(get_the_tags()) the_tags('<p class="tags">Tags: ',", ",'</p>'); ?> <p class="copyright">Copyright © 2007 - <?php echo date('Y') ?> <a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a>. All rights reserved.</p> </div> <?php yapb_image('', array('alt' => ''), '') ?> </div> <div class="clear"></div> </div> <?php endif; ?> <?php endwhile; ?> <?php endif; ?> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Photoblog Single Picture Per PageThat will only show the very fist post. I want just one post per page, and be able to click on the links for previous and next, but have them be the title of the post.
Here is the code from my index.php file.
<?php get_header(); ?> <?php //$wp_query->is_single = true; ?> <?php //query_posts("showposts=1"); ?> <?php if(have_posts()): ?> <?php while(have_posts()) : the_post(); ?> <?php if(yapb_is_photoblog_post()): ?> <?php $location = get_post_meta($post->ID, 'location', TRUE); ?> <!-- Photograph --> <div id="content"> <div id="photo" class="column16"> <div id="details" class="portrait"> <h1><?php the_title(); ?></h1> <h2 class="subDetails">/<?php the_time('F d, Y') ?> <?php echo !empty($location) ? '/'.$location : '' ?></h2> <div class="navLinks"> <?php previous_post_link() ?> | <?php next_post_link() ?> </div> <p><?php the_content(); ?></p> <?php if(get_the_tags()) the_tags('<p class="tags">Tags: ',", ",'</p>'); ?> <p class="copyright">Copyright © 2007 - <?php echo date('Y') ?> <a href="<?php echo get_option('home'); ?>"><?php bloginfo('name'); ?></a>. All rights reserved.</p> </div> <?php yapb_image('', array('alt' => ''), '') ?> </div> <div class="clear"></div> </div> <?php endif; ?> <?php endwhile; ?> <?php endif; ?> <?php get_footer(); ?>
Viewing 3 replies - 1 through 3 (of 3 total)