![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
After spending hours tinkering with Lifestyle 3.0, going through the support forum and installing the Reveal ID for Admin plugin, I still am unable to solve the following issue: I created a second Homepage Bottom1 box which I want to name as Travel. I have also created a test post. Using the above mentioned plug-in, I found out that the category ID for Travel is 28. And I copied and pasted Homepage Bottom code in Home.php and renamed the cat to the appropriate number. Still, it does not work. All I get is the Musings Category, which is actually the Uncategorised Category. Any help would be greatly appreciated. I am copying the code. thanks <div id="homepagebottom1"> <div class="hpbottom"> <?php $feature_cat_28 = get_option('lifestyle_feature_cat_28'); $feature_cat_28_num = get_option('lifestyle_feature_cat_28_num'); if(!$feature_cat_28) $feature_cat_28 = 1; //setting a default ?> <h3><?php echo cat_id_to_name($feature_cat_28); ?></h3> <?php $recent = new WP_Query("cat=".$feature_cat_28."&showposts=".$fea ture_cat_28_num); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "hpbottom", true) ): ?> [img]<?php echo get_post_meta($post->ID, [/img]" alt="<?php the_title(); ?>" /> <?php else: ?> <?php endif; ?> <?php the_title(); ?> <?php the_content_limit(80, ""); ?> <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div> <?php endwhile; ?> Read More Posts From This Category </div> </div> |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DCG woes | rthurman | General Discussion | 3 | 12-04-2010 06:08 PM |
| contact form woes... | shaunfitz@gmail.com | General Discussion | 1 | 07-16-2009 08:17 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