![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Here is the code I have for the tabber section:
<div class="tabber"> <div class="tabbertab"> <h2>News</h2> <?php $recent = new WP_Query("cat=3&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "homepage", true) ): ?> [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" /> <?php else: ?> [img]<?php bloginfo('template_url'); ?>/images/tabber.jpg[/img]" /> <?php endif; ?> <h1><?php the_title(); ?></h1> <?php the_content_limit(275, "[Read more...]"); ?> <?php endwhile; ?> </div> <div class="tabbertab"> <h2>Academics</h2> <?php $recent = new WP_Query("cat=7&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "homepage", true) ): ?> [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" /> <?php else: ?> [img]<?php bloginfo('template_url'); ?>/images/tabber.jpg[/img]" /> <?php endif; ?> <h1><?php the_title(); ?></h1> <?php the_content_limit(275, "[Read more...]"); ?> <?php endwhile; ?> </div> <div class="tabbertab"> <h2>Feature</h2> <?php $recent = new WP_Query("cat=9&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "homepage", true) ): ?> [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" /> <?php else: ?> [img]<?php bloginfo('template_url'); ?>/images/tabber.jpg[/img]" /> <?php endif; ?> <h1><?php the_title(); ?></h1> <?php the_content_limit(275, "[Read more...]"); ?> <?php endwhile; ?> </div> <div class="tabbertab"> <h2>Clubs/Organizations</h2> <?php $recent = new WP_Query("cat=4&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "homepage", true) ): ?> [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" /> <?php else: ?> [img]<?php bloginfo('template_url'); ?>/images/tabber.jpg[/img]" /> <?php endif; ?> <h1><?php the_title(); ?></h1> <?php the_content_limit(275, "[Read more...]"); ?> <?php endwhile; ?> </div> <div class="tabbertab"> <h2>Entertainment</h2> <?php $recent = new WP_Query("cat=5&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "homepage", true) ): ?> [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" /> <?php else: ?> [img]<?php bloginfo('template_url'); ?>/images/tabber.jpg[/img]" /> <?php endif; ?> <h1><?php the_title(); ?></h1> <?php the_content_limit(275, "[Read more...]"); ?> <?php endwhile; ?> </div> <div class="tabbertab"> <h2>Editorial</h2> <?php $recent = new WP_Query("cat=6&showposts=1"); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "homepage", true) ): ?> [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" /> <?php else: ?> [img]<?php bloginfo('template_url'); ?>/images/tabber.jpg[/img]" /> <?php endif; ?> <h1><?php the_title(); ?></h1> <?php the_content_limit(275, "[Read more...]"); ?> <?php endwhile; ?> </div> </div> I have made a post in the Entertainment section. It is showing the post but it is not showing on the tabber section. www.thsoutlook.com I made a custom field and I uploaded the picture. I copied the URL and pasted it in to the custom field section. I dont know what else to do or what the problem is. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tabber Section Missing... | liannef | General Discussion | 12 | 05-20-2010 01:31 PM |
| Keeping same post in tabber section | bb0818 | General Discussion | 4 | 08-28-2009 03:33 PM |
| Tabber section?? | rachelle123 | General Discussion | 14 | 11-25-2008 09:12 AM |
| Tabber Section Question | miketaft | General Discussion | 26 | 11-12-2008 12:33 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us