Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.
Sedo.com

Wanted: Service Does anyone know the custom field value for Wordpress 3.1 feature image?

Status
Not open for further replies.

Rockefeller

Level 11
Legacy Exclusive Member
Joined
Apr 8, 2005
Messages
8,011
Reaction score
58
In wordpress 3.1 they offer a "set featured image" for each blog post. I am trying to find out what the custom value for the "featured image" option is so that I can add it to my auto blog and have it pull a featured image for each blog post without setting it manually. You can see my site here: http://bit.ly/ejjSPI

Notice under "latest news" that the two posts with images I added manually using "set featured image" and the one without an image I used my auto blog. I've tried to use dozens of custom field values to display a generic image on my server using the auto blog. Is there a way to look at the page source to see what the custom field value would be?
 
Last edited:

Gerry

Dances With Dogs
Legacy Exclusive Member
Joined
Dec 3, 2006
Messages
14,985
Reaction score
1,302
I am hardly an expert. But it almost sounds like you need a Cron Job plugin.

When you get the answer, I would love to know the solution.
 

Stian

www.bitweb.no
Legacy Exclusive Member
Joined
Jan 19, 2007
Messages
7,608
Reaction score
292
I'm not sure if this is what you mean, but I just added a custom field to a Wordpress site I'm currently working on. I needed an extra field when posting that would fetch an uploaded header image from the gallery and post it in the top of the article.

In the theme I'm using, I had to make a new class in single.php;

Code:
<?php if(get_post_meta($post->ID, "[B]headerimg[/B]", true)) : ?>
					<img class="[B]headerimg[/B]" src="<?php echo get_post_meta($post->ID, "[B]headerimg[/B]", true); ?>" />					
<?php endif; ?>

After I added this code I can upload an image to the gallery and have it added to the post by adding a custom field called headerimg and the value is the URL where the image is located (the size of the image is defined in the css stylesheet).

Works perfectly for me, although I'm not sure if this was what you were looking for?
 

bgmv

Level 6
Legacy Platinum Member
Joined
Jan 15, 2008
Messages
602
Reaction score
7
not exactly sure how to add the custom field but just wanted to say that youre site looks pretty bad ass :yes:
 

Rockefeller

Level 11
Legacy Exclusive Member
Joined
Apr 8, 2005
Messages
8,011
Reaction score
58
The featured image doesn't show anywhere else besides the home page...still not sure how to do this, I've tried "img" "thumb" "thumbnail" "thumbnail_path" and just about everything else I thought would work

---------- Post added at 10:39 AM ---------- Previous post was at 10:33 AM ----------

Here's what the code looks like when I manually add the featured image for the post:

Code:
<div class="box">
<div class="img-box">
<a href="http://www.atving.org/2011/02/siuslaw-national-forest-dunes-routes-won%e2%80%99t-be-established-until-2011-2/" title="Siuslaw National Forest Dunes routes won’t be established until 2011"><img width="176" height="121" src="http://www.atving.org/wp-content/uploads/2011/02/img53.png" class="attachment-full wp-post-image" alt="img5" title="img5" /></a>
</div>
<a href="http://www.atving.org/2011/02/siuslaw-national-forest-dunes-routes-won%e2%80%99t-be-established-until-2011-2/" title="Siuslaw National Forest Dunes routes won’t be established until 2011"><h5>Siuslaw National Forest Dunes routes won’t be established until 2011</h5></a>

Here's what it looks like when I try to add a post through autoblogged:

Code:
<div class="box">
<div class="img-box">
<a href="http://www.atving.org/2011/03/desert-safari-this-weekend-north-of-ocotillo-wells-at-truckhaven/" title="Desert Safari This Weekend North of Ocotillo Wells at Truckhaven"></a>
</div>
<a href="http://www.atving.org/2011/03/desert-safari-this-weekend-north-of-ocotillo-wells-at-truckhaven/" title="Desert Safari This Weekend North of Ocotillo Wells at Truckhaven"><h5>Desert Safari This Weekend North of Ocotillo Wells at Truckhaven</h5></a>
 

bbakk

Level 2
Legacy Platinum Member
Joined
Jul 26, 2007
Messages
34
Reaction score
0
It's actually _thumbnail_id but that field needs the ID of a saved attachment.

However, we have made some updates to make sure the first attachment always gets assigned as the featured image in our v2.8.2 release which should be coming out tomorrow.
 

Rockefeller

Level 11
Legacy Exclusive Member
Joined
Apr 8, 2005
Messages
8,011
Reaction score
58
It's actually _thumbnail_id but that field needs the ID of a saved attachment.

However, we have made some updates to make sure the first attachment always gets assigned as the featured image in our v2.8.2 release which should be coming out tomorrow.

Thanks to bbakk, he fixed this issue for me, running seamlessly now. Highly recommend Autoblogged.com, I use it on dozens and dozens of sites!
 
Status
Not open for further replies.

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Sedo - it.com Premiums

IT.com

Premium Members

MariaBuy

Our Mods' Businesses

UrlPick.com

*the exceptional businesses of our esteemed moderators

Top Bottom