![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
What would I type to have a permanent thumbnail for the left/right bottom section without me having to use custom fields? in revolution 2.0 i uploaded a file to the images folder and would use /images/mypicture.jpg" somewhere in the code below and I wouldn't have to bother using custom fields in posts because the thumbnail would be done automatically.
the code looks different in lifestyle 3.0 so that got me confused. I know this is probably easy but I have spent the last half hour searching the forum and can't find it! If someone can show me how it would look like i would really appreciate it. btw is there a way to have thumbnails be put automatically so the same one won't show up this time which is this method (something along the lines of random thumbnails) <div class="hpfeatured"> <?php $feature_cat_1 = get_option('lifestyle_feature_cat_1'); $feature_cat_1_num = get_option('lifestyle_feature_cat_1_num'); if(!$feature_cat_1) $feature_cat_1 = 1; //setting a default ?> <h3><?php echo cat_id_to_name($feature_cat_1); ?></h3> <?php $recent = new WP_Query("cat=".$feature_cat_1."&showposts=".$feat ure_cat_1_num); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "thumbnail", 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, ""); ?> |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Permanent thumbnail for homepage | dpotocki | General Discussion | 2 | 11-04-2009 09:19 PM |
| Permanent ordering of subcategories | blameitonkarma | General Discussion | 3 | 04-26-2009 12:01 PM |
| Replacing AdSense with Permanent Images | kiaajjjj | General Discussion | 2 | 02-13-2009 08:02 AM |
| Permanent text block in sidebar | mikeoh | General Discussion | 3 | 01-30-2009 09:26 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