wordpress ("cat=3&showposts=1") not calling up picture

Status
Not open for further replies.

macman

New member
Mar 11, 2008
96
0
0
Im using word press( revolutiontheme)and im trying to make my picture show on my home.php page .i changed the ("cat=3&showposts=1") to ("p=3&showposts=1").but the picture from that post isnt coming up ?


Is there a plugin where i can just post my pages and it automaticly changes the cat=3 in the source and change the p=3 in the link to something more SE friendly . . like "mysite. com /themeofsite" ?
 


Does it use a custom field for the image?

I'm not really familliar with that theme there are 8 or 9 Revolution themes. Which one are you using? You can check your loop and see if it's using php the_excerpt or php the_content

If it uses the excerpt, an image in the body of the post won't show up until you go to the single post page.
 
The post is showing but the picture isn't? You're probably using the_excerpt instead of the_post in your template file.

You mean change your permalink structure? You can, it's under options.

edit: sat on that reply too long
 
im using Revolution Pro Media .i still havent figured out the problem yet but i think im headed in the right direction .ill report back when i get it fixed
 
That looks a lot like Mimbo. I bet it uses a custom field.
Look in the loop on home.php for something like get_post_custom_values("Image") or...
php echo get_post_meta($post->ID, "IMAGE", true)

If it's there you need to ad that custom field to get your image
to show in the "Featured section"
 
i think this is it .------><?php if( get_post_meta($post->ID, "right feature", true) ): ?>

but when i change the "right feature" to "http://mysite. com/wp-content/uploads/2008/09/david-spade.jpg"

it still dosent work.
 
i think this is it .------><?php if( get_post_meta($post->ID, "right feature", true) ): ?>

but when i change the "right feature" to "http://mysite. com/wp-content/uploads/2008/09/david-spade.jpg"

it still dosent work.
No, leave the code as it is. when writing the post, go to the bottom where it says "Custom Fields" and add a custom field.

For the "Key" enter "right feature"

and for Value enter "http://mysite.com/wp-content/uploads/2008/09/david-spade.jpg"

Then click "Add Custom Field" button
Edit: Like So...

untitled-1-copy.jpg



They do it that way so you don't need to edit the template whenever you change the featured post
 
Too late to edit but from what I found I think you're looking for "Top Feature" not right feature. It's in div class="hptabber"

Hard to tell though without seeing the site and not know exactly what you're tying to do. This theme uses a lot of custom fields to post images to the home page.
 
Last edited:
the site is dailycomedycentral.com .i haven't tried that yet but i think you found exactly what i was looking for .thanks adhorrent
 
Status
Not open for further replies.