WordPress.org

Ready to get started?Download WordPress

Forums

Spotless Theme (3 posts)

  1. tombegasse
    Member
    Posted 4 years ago #

    I need help getting the Spotless Theme by Taly to work correctly. It is a photo blog theme. One of the features of the theme is that when you click on the image in the current post it brings you to the image in the previous post.

    When I click on my current image post, the same image is displayed, but from my media library in a plain window.

    Below is my index.php .... can anyone point out a syntax error or something making the theme behave this way?

    <?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 class="posted">  
    
    <?php previous_post('%', '&laquo; Previous &middot;', 'no'); ?> <?php next_posts_link('&laquo; Previous &middot;') ?> <a>" title="Permalink"><?php the_title(); ?></a> &middot; <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> <?php previous_posts_link('&middot; Next &raquo;') ?> <?php next_post('%', '&middot; Next &raquo;', 'no'); ?>
    </div>   
    
    </div>
    
    <!-- <?php trackback_rdf(); ?> -->    
    
    <?php endforeach; else: ?>
    <p><b> <h2 class="center">Page not found</h2> 	</b></p> 
    
    <?php endif; ?>    
    
    <!-- end post -->      
    
    <?php get_footer(); ?>

    The author has a FAQ page (not maintained) which talks about this feature and I have tried to follow the recommendations to no avail!
    http://fivebyfive.com.ar/wp-themes/faq/

    Any input would be much appreciated.
    Tom

  2. webjunk
    Member
    Posted 4 years ago #

    As the author states only through WP version 2.7 would probably not spend the time. He states "These themes work in every WordPress version from 1.5 to 2.7 inclusive."
    You will have many other things to fix/change in that theme to get it to work in WP 3.0 as wshown in the comments on there. Would probably be quicker to make a new theme from scratch.

  3. tombegasse
    Member
    Posted 4 years ago #

    The theme is working, except for this one glitch.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags