StudioPress Community Forums

StudioPress Community Forums (http://www.studiopress.com/support/index.php)
-   General Discussion (http://www.studiopress.com/support/forumdisplay.php?f=7)
-   -   Using tabber.jpg images (http://www.studiopress.com/support/showthread.php?t=409)

absolute 11-06-2008 11:13 AM

Using tabber.jpg images
 
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...

John Flynn 11-06-2008 11:54 AM

Re: Using tabber.jpg images
 
"homepage" is the word you use in custom fields to call the image and the size is 600px × 200px

absolute 11-06-2008 12:47 PM

Re: Using tabber.jpg images
 
Thanks John will give that a try!

Can you give me an example of the exact code to put into custom field?

John Flynn 11-06-2008 02:05 PM

Re: Using tabber.jpg images
 
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.)

absolute 11-07-2008 06:02 AM

Re: Using tabber.jpg images
 
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?

Rebecca Diamond 11-07-2008 06:27 AM

Re: Using tabber.jpg images
 
url please?

John Flynn 11-07-2008 07:14 AM

Re: Using tabber.jpg images
 
Did you change the cat=1 to the category ID you want to pull?

absolute 11-07-2008 08:14 AM

Re: Using tabber.jpg images
 
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>

The first one (with the default post) shows, but when I select the tabs for other categories they don't show...

Rebecca Diamond 11-07-2008 08:31 AM

Re: Using tabber.jpg images
 
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.

absolute 11-07-2008 08:50 AM

Re: Using tabber.jpg images
 
Just to confirm. That solved the problem!

Thanks reb :D

Rebecca Diamond 11-07-2008 08:56 AM

Re: Using tabber.jpg images
 
you're welcome :) best of luck to you!

FireFleitz 11-07-2008 06:14 PM

Re: Using tabber.jpg images
 
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!!

absolute 11-08-2008 04:14 AM

Re: Using tabber.jpg images
 
I create my images in photoshop so not much of a secret shortcut

Rebecca Diamond 11-08-2008 08:43 AM

Re: Using tabber.jpg images
 
if you don't have time for photoshop (or are posting mobile) this is a great and free resource: http://www.flipmyphotos.com/


All times are GMT -5. The time now is 07:42 PM.

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