Hi, thanks so much for the plugin, it works great for intended purpose,
I wondered if you had any advice on how to extend it to create posts for file uploads of any format, not just images?
Many thanks for anything you can share, mhj123
]]>So I am using this awesome plugin with the filter:
add_filter( 'afip_new_post_content', 'myprefix_change_afip_post_content', 10, 2 );
/* Grabs the image source for the newly created image and inserts it
* into the new post content along with a one line paragraph. */
function myprefix_change_afip_post_content( $post_content, $attachment_id ) {
$my_uploaded_image = wp_get_attachment_image_src( $attachment_id );
$post_content = '<p>This is my new uploaded image....</p>';
$post_content .= '<img src="' . $my_uploaded_image[0] . '">';
return $post_content;
}
And I want to add an alt tag to every uploaded image which should be the same as the image’s title. Could anyone help me out?
]]>I have updated this plugin as i wanted to add gif images but after installing this gif images not working. please tell me the solution. https://www.peyotemorgan.com/about/
https://www.ads-software.com/plugins/automatic-featured-image-posts/
]]>Hi,
Your plugin is great!
May you help me to modify it to auto add the post date beside the post title?
https://www.ads-software.com/plugins/automatic-featured-image-posts/
]]>Hi,
I want to have the same plugin but for audio type. How I can do ?
Many thanks
https://www.ads-software.com/plugins/automatic-featured-image-posts/
]]>image name 1.jpg
image name 2.jpg
image name 3.jpg
added in the same post would be awesome!!!
https://www.ads-software.com/plugins/automatic-featured-image-posts/
]]>Great plugin! It’s saving me so much work.
How can I set the category for my custom post type?
I successfully used the filter for setting the category for regular posts, but it doesn’t work for my custom post type.
Thanks,
https://www.ads-software.com/plugins/automatic-featured-image-posts/
]]>Everything works perfectly !
It will be awesome if the plugin has an option to choose category from the backend , like option for draft / publish / private and post type!
I tried to insert the code below in automatic-featured-image-posts.php but , options are displaying but its not working … can somebody help me out with this issue!
public function output_default_post_category_text() {
$afip_options = get_option( 'afip_options' );
if ( ! isset( $afip_options['default_post_category'] ) )
$afip_options['default_post_category'] = $this->post_category;
?>
<?php $categories= get_categories(); echo "<select id='afip_default_post_category' name='afip_options[default_post_category]'>"; foreach ($categories as $cat) { $selected = ($cat->cat_name==$options['amp_cat']) ? 'selected="selected"' : ''; echo "<option value='$cat->cat_name' $selected>$cat->name</option>"; } echo "</select>";
add_filter( 'afip_new_post_category', 'myprefix_change_afip_post_category', 10, 2 );
function myprefix_change_afip_post_category( $post_category, $attachment_id ) {
$my_photo_category = $selected;
if ( is_object( $my_photo_category ) )
$post_category[] = $my_photo_category->term_id;
return $post_category;
}
?>
https://www.ads-software.com/plugins/automatic-featured-image-posts/
]]>Hello,
I am trying to auto post images to a page I created (not the homepage). I have created a custom content type for the auto posts, but I can’t get the images to show up anywhere. I don’t really know how to display this new content type on a page, with all the images displayed. Has anyone else tried this out and had any success?
Basically, I just want to show these auto posts on a page that is not the homepage, using a custom post type that I have created.
Has anyone had any luck with something like this?
Thanks!
https://www.ads-software.com/plugins/automatic-featured-image-posts/
]]>the plugin wont work
i am using feedwordpress to syndicate images and store them in media
but “Automatic Featured Image Posts” wont save them in draft post status
Automatic Featured Image Posts works only if i upload them manually
how to make it work with syndicated images also?
https://www.ads-software.com/plugins/automatic-featured-image-posts/
]]>Hi,
Great plugin. It’s really a life saver. My theme currently has a featured image, and a featured image single post meta.
How can I set the uploaded image to both the featured image and the featured image single post fields?
Am I on the right track:
update_post_meta( $new_post_id, '_thumbnail_id','portfolio_single-featured_thumbnail_id', $post_id );
https://www.ads-software.com/plugins/automatic-featured-image-posts/
]]>Hello!
I’m looking for a way to randomize all the featured images on my homepage.
https://www.andrewmckinley.com
Anyone know a magic piece of code which could achieve this?
I have hundreds of photos / featured images on infinite scroll on my homepage and would love a way to give some different faces a turn at the top of the pile.
Many thanks.
https://www.ads-software.com/plugins/automatic-featured-image-posts/
]]>Hello!
I love the Automatic Featured Image Posts Widget. It has saved me many hours of my life. Thank you.
I’m having one problem, there are two blank photo sized spaces on the sixth row down on the home page of my website where two featured images should appear.
I can’t figure out what’s causing this. Would be super grateful if someone could take a look and see if they can tell me what’s going on.
https://www.andrewmckinley.com/
Thanks!
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>Hello,
today the awesome plugin you created suddenly stopped working perfectly. In the past it would auto create a thumbnail everytime I would add an image to my media. However now it does not create a thumbnail. The line of code in the post is exactly the same as with the previous working posts, however with the new posts there is just no featured image.
So basicly I have an empty block with no featured image and when you click the title the picture will appear.
Any idea why this doesn’t work? I am open to suggestions! If you think it is not your plugin but somethin else, please do share. I would like this fixed as soon as possible.
Thanks in advance!
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>I use Lightroom for keywording. The process I use now is to import from Tumblr because I can export with keywords. Is there a way that your plugin could somehow import a field as keywords into the new posts? It would be much faster and efficient to keyword in lightroom and not tag in wordpress. Thanks for your plugin.
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>Are you aware of any issues/collision points with autoblooging (that is RSS Posting to the site) and using the automatic Featured image plugin? Currently, it is not working as intended.
LOVE the plugin and would like to have it working as expected; thanks!
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>Would be grateful if someone could guide me towards automatically setting a category for posts created from images with this plugin.
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>Hi, this is a great plugin! I am a newbie with wordpress (not a developer). I run a site that deals only with images (similar to damnlol or other funny pictures sites). Thus, I require to create posts with 1 images per post again and again. I see this plugin can be create tool to reduce my labor.
However, I would like to know once an image is uploaded and this plugin creates a post automatically; can the featured post be automatically added as post content (I mean body of the post, not just featured image/thumbnail)?
If yes, any suggestion/guideline please!!
P.S.: My theme can auto set a predefined size for featured and post content.
Much obliged.
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>Hi, this is a great plugin! I am a newbie with wordpress (not a developer). I run a site that deals only with images (similar to damnlol or other funny pictures sites). Thus, I require to create posts with 1 images per post again and again. I see this plugin can be create tool to reduce my labor.
However, I would like to know once an image is uploaded and this plugin creates a post automatically; can the featured post be automatically added as post content (I mean body of the post, not just featured image/thumbnail)?
If yes, any suggestion/guideline please!!
Much obliged.
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>Hi. I’m trying to combine AFIP with another plugin (Media Metadata Workflow Wizard) that extracts metadata from uploaded images. I want to populate the content of the post created by AFIP with other metadata extracted from the uploaded images. The only issue is that AFIP fires on “add_attachment” which occurs before MMWW saves metadata to the database. I think I need it to fire on “updated_post_meta” (see this page https://wordpress.stackexchange.com/questions/61519/wp-get-attachment-metadata-returns-false-with-add-action-add-attachment-hook and this page https://wordpress.stackexchange.com/questions/16835/how-to-hook-update-post-meta-and-delete-post-meta)
Can anyone help me out with modifying the code?
Best,
P
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>I’ve a huge bunch of images uploaded already before using this plugin. Is there a way to create posts for those images too or am I supposed to reupload them again?
thanks
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>I am using a third party software to publish my posts other than wordpress. Can your Plugin helps me to create a featured image to my posts.
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>My scenario is as follows – use your plugin to hook into every image that is uploaded and create a post from that, which is exactly what you intended, all good so far, use your afip_new_post_content to add in some post content as per below:
<?php
/*
Plugin Name: Add Post Content to Automatic Featured Image Posts
Plugin URI:
Description:
Version:
Author:
Author URI:
License:
License URI:
*/
add_filter( ‘afip_new_post_content’, ‘dgm_change_afip_post_content’, 10, 2 );
/* Grabs the image source for the newly created image and inserts it
* into the new post content along with a one line paragraph. */
function dgm_change_afip_post_content( $post_content, $attachment_id ) {
$image_title = get_the_title($attachment_id);
$image_caption = $attachment->post_excerpt;
$image_description = $image->post_content;
$image_attributes = wp_get_attachment_image_src($attachment_id, $size);
$image_full_attributes = wp_get_attachment_image_src($attachment_id, ‘full’);
$attachment = get_post($attachment_id);
$content = $attachment->post_content;
$content = apply_filters(‘the_content’, $content);
$image_description = str_replace(‘]]>’, ‘]]>’, $content);
$attachmenturl = wp_get_attachment_url($attachment_id);
$attachmentimage = ‘<img src=”‘ . $image_attributes[0] . ‘” alt=”‘ . $image_title . ‘” />’;
$attachment_page = get_attachment_link($attachment_id);
$attachment_page_link = ‘Full Image Details‘;
$post_content = ‘<p>’ . $image_description . ‘</p><!–more–>’ . ‘‘ . $attachmentimage . ‘‘ . $image_title . ‘ | ‘ . $attachment_page_link;
return $post_content;
}
This all works fine – so I figured everything was good – until I realised my homepage, which makes heavy use of the featured images was turning slow and starting to run like a dog, then I realised, my 1024 * 768 images are being used on the home page as the featured image and scaled in the browser – so this making my home page hurt a lot
Now I assume you do your magic in the create_post_from_image function – what I really need to do here – and it may benefit others, is to not add the full-size image to the new post as the featured image, but instead one of my smaller image sizes – so my homepage doesn’t hurt as much – I hope that I have explained this well enough
Looking at the create_post_from_image I cannot for the life of me work out how to change the size of image assigned to the featured image of the new post – can you give me a pointer at all here?
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>Following up from this post https://www.ads-software.com/support/topic/pre-filled-post-contents?replies=2
I currently have this as the default content which is added to each post created by this plugin
add_filter( 'afip_new_post_content', 'diww_default_post_content' );
function diww_default_post_content() {
$content = "<iframe src= ></iframe>";
return $content;
}
Currently I’m manually adding in the iframe src for each post. I currently have a php array with a list of URL’s. I would like to incrementally add a new URL to the src from my array each time a new post is created.
Is this possible? If so does the current plugin work like a loop and allows a counter to increment? How would something like this be achieved?
e.g.
URL[0] -> Post[0]
URL[1] -> Post[1]
URL[2] -> Post[2]
and so on.
Thanks, great plugin btw. Works amazing! ??
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>I need different post templates by file terminations (ex. jpg jpeg png), is it possible ?
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>Hi!
First of all: Love your plugin!
I have a slight issue. I will have members posting their stories (custom post format) on https://www.domda.se/min-berattelse
I use Post for Site for this.
However. I have to generate the thumbnails for the story posts. For regular posts it works instantly. Is there a way to get your plugin to recognize when a story post is being made directly from the site?
I hope you understand the issue and are able to help.
Best Regards
Felicia
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>First of all, great plugin, i’m developing a website for a tattooer with no computer skills and his helps me (him) a lot.
A little suggestion:
I would like to use the title of the image instead of the filename, that usually are something ugly like “IMG_3911” or “DCIM…”
Do you think u can implement it?
Ciao from Italy!
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>Hello,
Could you please tell me whether it’s possible to have pre-filled contents for each post? E.g. For each post created by Automatic Featured Image Post plugin I would like to have the same starting paragraph in the contents.
Thank You
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>I have my settings set to
Default Post Status: Publish
Default Post Type: Post
But, when I upload my images, the posts are getting scheduled instead of published. I can’t figure out how to make it stop, so any feedback is much appreciated!
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>I would like to edit the arrangement of the single posts when using this plugin but I dont know where to do it?
In the appearance editor the code is how I want single post pages to be shown but it does not show like that on the website.
Sorry if this is a silly question but I am so confused.
Thanks
https://www.ads-software.com/extend/plugins/automatic-featured-image-posts/
]]>