I have seen sites like freelanceswitch.com add images right next to the title of the blog posts.. Are they using a plugin? anyone have any idea on how do you add this feature?
Exactly, just simply edit the template of your PHP file, and add the image HTML code next to the title of the blog.
Do you mean a different picture for each post or the same picture for every post? I'd like to be able to elect a picture for each post in certain categories... I tried finding a plugin but I couldn't.
@nks.. thanks .. but the question was how... I don't want the same image on all posts.. so cant really edit the index to do it.. or can I.. not a complete newbie but I am more or less a beginner on these matters.. @sickanimations - I am looking at different images.. I don't know if you guys got me right on this.. let me put it again... When we add images to blog posts.. its usually along side the article.. .i.e. after and below the post title.. in websites like freelanceswitch.com and their other network sites.. these images that we add to blog posts begin right next tot he title itself and then go further into the posts... check out freelanceswitch.com to get a better idea of what exactly am looking for...
If i get what u mean correctly, then i think it's just manual insertion of different image on each post. And the way the image in each post turn up like that is the design/template of the site.
Addition: Checked the source code, the image actually came before permalink on each post. So i changed my mind. Maybe they custom code some plugins, which isn't available freely anywhere. Maybe.
Alright, what if I need a same photograph in front of all titles. The titles can be on any page like index or single post. Any help pls? Thx.
You can do this easily by adding the image to a custom field in the post, and calling that field in the template. It would go something like this: 1. Start a new post, and half way down there is a section called "Custom Fields". 2. Create a new field with the name "Post_Thumb", and insert the image in there. 3. Go to your template (ie, Single.php) and add the following code where you want the image posted: <?php $values = get_post_custom_values("Post_Thumb"); echo $values[0]; ?> Code (markup): Make sure that you have the fieldname (Post_Thumb) EXACTLY as you have it in the code, or it will not work. You can create as many fieldnames as you need, and call them all using this method. This is how I show all the site information at: http://csscharm.com/2008/07/09/carbonmade/
look at line like following (theme->index.php) <div id="content"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> ... ......... ............ *play around this line, put image/photo before or after <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
Here is the answer friends: http://www.gp-singh.com/showthread.php?tid=18 If still you feel any probs please ask me. Cheers, ML.