Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Header configuration & styling (http://forum.bytesforall.com/forumdisplay.php?f=15)
-   -   [SOLVED] Use Custom Field image_src to Show Thumbnail in Excerpt (http://forum.bytesforall.com/showthread.php?t=13161)

Big Geek Daddy Mar 5, 2011 10:43 AM

[SOLVED] Use Custom Field image_src to Show Thumbnail in Excerpt
Is there a way to use a custom field (image_src) to show an image in the Excerpt on the category pages? I don't have an image in the post itself so just trying to figure out if the custom field can be used to do this.

If possible, what is the code and where would it go in the Theme?

lmilesw Mar 5, 2011 09:40 PM

How about using the featured image on the post?

Big Geek Daddy Mar 6, 2011 06:10 AM

There isn't a featured image. The posts don't have an images in them and I'm using the image_src as a custom field so the nrelate Plugin will work. Just trying to figure out if I can also use that custom field to show the same thumbnail in excerpts.

lmilesw Mar 6, 2011 07:31 AM

There is probably some way if you did into the code but you could also just add the image you are pointing to in the custom field as the featured image of the post. That image will show up in the excerpt.

Big Geek Daddy Mar 6, 2011 07:45 AM

Well unless I'm completely missing something using the Featured Image Adds the image to the post. I don't want the image to display in the post. Also, when I tried this just now the image did show up in the post but not in Excerpt.

lmilesw Mar 6, 2011 07:55 AM

When I tried it the image showed in the excerpt and not the post. Hmmm.

Big Geek Daddy Mar 6, 2011 08:12 AM

OK...I think I see how your doing that. I was trying to add image using From URL tab and it appears you're using Media Library tab. The Media Library Tab has "use as featured image" while the URL Tab only has "Insert into Post".

Since I've been hosting my images somewhere else this kind of leaves me in a bind unless I can somehow use the current image_src field or manually go back and add all my images to the Media Library then update individual posts. At least going forward I know what the option is...just all the previous posts...arghhhh!!! Live and Learn I guess...LOL.

lmilesw Mar 6, 2011 03:05 PM

I know your pain. I try to future proof my sites best as possible and then I find I should have done it a different way so now have to do a bunch of work to "fix". I guess that just goes with this type of work.

There is also an Add Featured Image link on the right column of the edit post screen. You still can't add one via a URL but sometimes this makes more sense when adding a featured image after the post has been created.

You might also do a search at wordpress.org for plugins that will let you import images for the featured images in bulk. I am not certain but I often am surprised by what is there.

Big Geek Daddy Mar 6, 2011 05:33 PM

I used the Add Featured Image link to add a bunch of images to my most recent posts so now the category pages have a thumbnail for the first few pages. Thankfully I had kept all my thumbnails organized by the month I created the post so really wasn't that hard to add them in.

I had used Thumbnails for Excerpts plugin for awhile but to get it to work I had to include an image in the post which is what I was trying to avoid. It's a good plugin but unfortunately it hasn't been updated in a long time and that always makes me a little leery to use it.

This will be easy to do going forward so thanks again for your help in pointing me towards the featured image function.:)

All times are GMT -6. The time now is 10:27 AM.

Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.