Jump to content

Recommended Posts

I downloaded a wordpress photo and video theme and followed the directions for installation. On the Index page, there's 3 Categories 1) Photos 2) Videos 3) games with 6 thumbnails for each.

 

However, when I upload photos and videos, the videos showing up in the Photos and vice versa. I know its something wrong with the code and probably an easy fix! Please Help, I would greatly appreciate it. See below for the Main Index.php from my site. Also here is my site for referrence www.japanseinked.com. I tried to ask theme creator, but he had closed off discussions 3 months before i downloaded the theme. THANK YOU IN ADVANCE!!!

 

<?php get_header(); ?>

 

<div id="right-content">

<div class="entrytop"></div>

 

<div id="post-entry">

 

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

 

<h1 class="title">New Photos:</h1>

 

<?php $recent = new WP_Query("cat=photos&showposts=6"); while($recent->have_posts()) : $recent->the_post();?>

 

 

<div class="item1" onmouseover="this.className='item2'" onmouseout="this.className='item1'">

 

 

 

<?php if( get_post_meta($post->ID, "thumb", true) ): ?>

 

<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">

 

<img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" height="120" width="160" alt="<?php the_title(); ?>" /></a></p>

 

 

<?php else: ?>

 

<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">

 

<img src="<?php $values = get_post_custom_values("photo"); echo $values[0]; ?>" height="120" width="160" alt="<?php the_title(); ?>" /></a></p>

 

<?php endif; ?>

 

<div class="kategori"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>

<div class="rate"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></div> 

<div class="views"><?php if(function_exists('the_views')) { the_views(); } ?>  </div>

<div class="clear"></div>

</div>

 

 

<?php endwhile; ?>

<div class="clear"></div><br />

<h1 class="title">New Videos:</h1>

<?php $recent = new WP_Query("cat=videos&showposts=6"); while($recent->have_posts()) : $recent->the_post();?>

 

 

<div class="item1" onmouseover="this.className='item2'" onmouseout="this.className='item1'">

 

<?php if( get_post_meta($post->ID, "thumb", true) ): ?>

 

<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">

 

<img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" height="120" width="160" alt="<?php the_title(); ?>" /></a></p>

 

 

<?php else: ?>

 

<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">

 

<img src="<?php $values = get_post_custom_values("photo"); echo $values[0]; ?>" height="120" width="160" alt="<?php the_title(); ?>" /></a></p>

 

<?php endif; ?>

<div class="kategori"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>

<div class="rate"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></div> 

<div class="views"><?php if(function_exists('the_views')) { the_views(); } ?>  </div>

<div class="clear"></div>

</div>

 

 

<?php endwhile; ?>

<div class="clear"></div><br />

 

<h1 class="title">New Tattoo Designs:</h1>

<?php $recent = new WP_Query("cat=tattoodesigns&showposts=6"); while($recent->have_posts()) : $recent->the_post();?>

 

 

<div class="item1" onmouseover="this.className='item2'" onmouseout="this.className='item1'">

 

<?php if( get_post_meta($post->ID, "thumb", true) ): ?>

 

<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">

 

<img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" height="120" width="160" alt="<?php the_title(); ?>" /></a></p>

 

 

<?php else: ?>

 

<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">

 

<img src="<?php $values = get_post_custom_values("photo"); echo $values[0]; ?>" height="120" width="160" alt="<?php the_title(); ?>" /></a></p>

 

<?php endif; ?>

<div class="kategori"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>

<div class="rate"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></div> 

<div class="views"><?php if(function_exists('the_views')) { the_views(); } ?>  </div>

<div class="clear"></div>

</div>

 

 

<?php endwhile; ?>

<div class="clear"></div>

 

 

 

<?php else: ?>

 

<h2>Sorry, but you are looking for something that isn't here.</h2>

 

<?php endif; ?>

<script type="text/javascript">

 

  var _gaq = _gaq || [];

  _gaq.push(['_setAccount', 'UA-12348304-4']);

  _gaq.push(['_trackPageview']);

 

  (function() {

    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

  })();

 

</script>

 

</div>

 

<?php include (TEMPLATEPATH . '/right-sidebar.php'); ?>

 

</div>

 

<?php get_sidebar(); ?>

 

<?php get_footer(); ?>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.