StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-05-2009, 11:03 AM
senthil senthil is offline
Registered User
Genesis Member
 
Join Date: Feb 2009
Posts: 45
Default Category Woes

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 11:50 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.