AutoFields Plugin will auto fill the Excerpt and add an Image custom field based on the data you entered into the contents editor. This plugin will set the first paragraph of the content as the excerpt and take the first image(if there are any) and set it as the ‘Image’ custom field(needed for some themes – like Mimbo – my theme). When you hit the publish button, it will check to make sure that excerpt and Image custom field are filled. If not, it will ask you to confirm before publishing the post.
If you are new to this blog, this is the Plugin Week. I am going to release one wordpress plugin each day, every day for one week(ie. Monday to Friday). Each day you will get a new plugin by me. This is the second plugin in this series. The first one was Eventr Plugin
Installation
- Download the zipped file from WordPress Plugin Repository page for Autofields.
- Extract and upload the contents of the folder to /wp-contents/plugins/ folder
- Go to the Plugin management page of WordPress admin section and enable the Autofields plugin
Screenshot
Feedback
If you have any suggestions or notice any problems with the plugin, post it in the Autofields Plugin forum.
Next plugin will be released tomorrow.
This is what I have been seeking for.
One question then, can we also config the image custom field cz some themes need different codes?
Great idea for a plug-in. It doesn’t work for other themes because the custom field for the image isn’t defined.
Will this plugin work if you are importing articles via an rss importer such as wp-o-matic or simply importing them from an xml file?
The link, displayed on the installed plugins page, to your site goes to http://binnyva.com/ and not to this blog.
I’m using wordpress 2.7
@Gofree
You have to change the code of the plugin for that. Can you give me a list of the other custom field values used in other plugins?
@g
It will not work when importing articles – sorry – you will have to edit them manually.
About the link, that’s ok – its the authors url – not the plugin url.
Hello,
Is there a way to modify this plugin for it insert 2 standart fields for all my post?
The problem I have is most new themes of WP are using thumbnails for post. But they need every post has 2 custom fields:
1. Name: Thumbnail
2. Value: url_base_to_thumbnail_dir/thumbnail_for_a_post.jpg
Since I’ve been writing all my posts without these 2 custom fields, I need to insert them automatically.
Thank you!
Its possible to do that – but you’ll have to edit the code to do it.
Yes, I know it, Binny, the problem is have not idea about php 🙂
Anyway, I’m sure lot of people out there are looking for a plugin as I asking for… and may be, if you are boring, you could do it 🙂
regards!
Cool – I’ll add it in the next version.
Thank you!!
and may be you also can add an autoscan option, to scan the images in the post, and then generate an automatic thumbnail (with a configurable size). I mean, something similar to this: http://fabrizio.zellini.org/wordpress-related-posts-with-thumbs-revised
When will you release the next version of your plugin?
Regards,
Hi Binny,
I love the idea of your plugin, I’m using wp-o-matic to pull in Ebay RSS feeds and I need a way of adding some custom fields.
I need a way of extracting “buyitnowprice” from the feed and adding the value as the “price” custom feed, I also need the image to be pulled from the content and added as “images”.
Is it possible to do this with your plugin, would be able to make a donation if it is.
Regards
Colin
Its not possible using the current version of the plugin. You’ll have to do custom coding to get that feature.
Hi,
many thanks for the plugins,
how can I set the autofields for below custom fields:-
1)hilight934x218
2)thumb
I want both to have the same image path (1st image on wp editor)
thanks
Currently, there is only one custom field per image. If you need more, you’ll have to edit the code.
great to know that its possible,
may I know which line that I have to edit?
Try autofields.php, line 83. Copy those multiple times to create multiple custom fields.
Hi,
I did try that but it does not work.
can give an example of the full codes for autofields.php for two custom fields below :
1)” _video_thumbnail”
2) “_video_thumbnail_small”
thanks in adv.