![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
How do I control the tabber.jpg images in the featured posts?
Do they have to have a specific size, if so what is the size? I suppose the image has to be called from a custom theme if I remember correctly... but I couldn't find the exact instructions anywhere...
__________________
Revolution are the best themes out there! By faaaar :) |
|
#2
|
||||
|
||||
|
"homepage" is the word you use in custom fields to call the image and the size is 600px × 200px
__________________
John Flynn Kickstart Media Latest StudioPress Design Recommended StudioPress/Revolution Designer |
|
#3
|
|||
|
|||
|
Thanks John will give that a try!
Can you give me an example of the exact code to put into custom field?
__________________
Revolution are the best themes out there! By faaaar :) |
|
#4
|
||||
|
||||
|
sure. Under "key" in the custom fields section write "homepage" and under "value" paste the url to your image. You get the url of your image by uploading it (look to the right of your post title and you'll see "add an image" and then copying the url that it assigns to your uploaded image.)
__________________
John Flynn Kickstart Media Latest StudioPress Design Recommended StudioPress/Revolution Designer |
|
#5
|
|||
|
|||
|
Ok perfect thanks a lot that has worked.
Now I realised I needed to edit tabber.php file to call the categories. I did that but only the first one shows, the other ones don't pull any categories for some strange reason. Any ideas about what I am doing wrong?
__________________
Revolution are the best themes out there! By faaaar :) |
|
#6
|
||||
|
||||
|
url please?
|
|
#7
|
||||
|
||||
|
Did you change the cat=1 to the category ID you want to pull?
__________________
John Flynn Kickstart Media Latest StudioPress Design Recommended StudioPress/Revolution Designer |
|
#8
|
|||
|
|||
|
Yes I did...
Here is the first two: Code:
<div class="tabber">
<div class="tabbertab">
<h2>Headlines</h2>
<?php $recent = new WP_Query("cat=1&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>Markets</h2>
<?php $recent = new WP_Query("cat=4&showposts=1&offset=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>
__________________
Revolution are the best themes out there! By faaaar :) |
|
#9
|
||||
|
||||
|
I pm'ed you with this, but for anyone else reading - it's the &offset=1 that's causing the problem - it needs to be removed. That offset tells it to pull the second post from the category.
|
|
#10
|
|||
|
|||
|
Just to confirm. That solved the problem!
Thanks reb :D
__________________
Revolution are the best themes out there! By faaaar :) |
|
#11
|
||||
|
||||
|
you're welcome :) best of luck to you!
|
|
#12
|
|||
|
|||
|
Ok, there has to be a shortcut for resizing images to 600x200.
What is the secret shortcut over resizing and cropping an image? Thanks in advance!! |
|
#13
|
|||
|
|||
|
I create my images in photoshop so not much of a secret shortcut
__________________
Revolution are the best themes out there! By faaaar :) |
|
#14
|
||||
|
||||
|
if you don't have time for photoshop (or are posting mobile) this is a great and free resource: http://www.flipmyphotos.com/
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FCG gets stuck on the tabber if > 5 images | Sandal Woods | General Discussion | 7 | 02-21-2010 01:52 PM |
| Tabber images and category order | darius.moeini | General Discussion | 3 | 12-10-2009 06:00 PM |
| Home page tabber and images | candyellie | General Discussion | 3 | 11-14-2009 03:23 AM |
| How to make images in tabber much bigger? | speedmouse | General Discussion | 17 | 10-07-2009 05:47 AM |
| Tabber Images Help Needed | eastgirl | General Discussion | 4 | 03-17-2009 01:17 PM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us