HELP automatic custom fields!

hitchpua

Registered Member
Joined
May 14, 2009
Messages
54
Reaction score
0
hi guys i have some beautifull wp theme that use custom fields to work
so at each post i have to put
under "custom fields" NAME and VALUE
and the grafic is perfect with Thumbnail ecc ...

Should be perfect if i can make an autoblog that when post a video, article ecc
write the custom field name and value in automatic for adding a professional thumbnail at each post in autoblog mode!!!!

Is it possible !?
 
I think automatic custom fields is not possible.. but I saw a theme with thumbnails without any custom field! Search for it! I really forget it man!
 
Autoblogged will insert custom fields, myvideoblog will too
 
Yes, it's possible to set up custom fields for posts so each new post will automatically have those fields inserted. You need to write it as a WP plugin, though, or if not, you need to include it as part of your theme's functions.php file.
Check this codex post out:
Code:
http://codex.wordpress.org/Function_Reference/add_meta_box
That will show you how to add the custom fields to your post/page admin menus, and then to populate them you just need to add the variable and value from your autoposter to it using the wp_post_insert function.
 
Recently I wrote this into blogsense to handle automatic custom fields for images only.
 
I use this to post videos to a blog using a tube theme, the tube theme uses custom fields

Here is a short example of what I use

Code:
$success = wp_insert_post($post);
				
if (!$success) 
	$errmsg[] = "Failed posting from $name";
else
{
$errmsg[] = "$name successfully processed $success";
//update custom_fields based on NTS file
add_post_meta($success, 'thumb', $thumb);
//add_post_meta($success, 'duration', $duration);
$results++;
}


I insert a new post and if successful I then add the custom field, in this case its a thumbnail of a video
 
If you using wprobot, adding customfied automatically is possible.
just see inside this article : http://www.autoblogtheme.info/tips/modify-amazon-module-wp-robot-plugins-to-add-custom-fields.html
 
you can try this plugin here... it does exactly what you want i guess...

Code:
http://wordpress.org/extend/plugins/ms-auto-thumbnail-custom-key-generator/
 
Back
Top