Jeremy Felt
Forum Replies Created
-
Forum: Plugins
In reply to: [Automatic Featured Image Posts] Insert dynamic default content?Hey @jcyin, glad you like the plugin.
Automatic Featured Image Posts is hooked into
add_attachment
to do most of its work. While it doesn’t have its own specific loop to hook into, it is part of the greater loop that is created when uploading multiple images.You could probably keep track of the incrementing URL through your own variable outside of your filter in PHP or by building an array of URLs in advance and then removing one from the array each time it is used in your filter.
Hope that helps!
@davidgmiles – I can’t tell for sure, but it sounds like your theme is not making use of actual post thumbnails. The code you give as an example is taking the full image source and inserting it directly into the content.
If your theme supports Post Thumbnails via code like
add_theme_support( 'post-thumbnails' )
, it should generate various size images for you based on code like this –add_image_size( 'some-description', 640, 480 )
and display these on the front end via code likethe_post_thumbnail( 'some-description' )
. If you are using<img src="..." />
instead ofthe_post_thumbnail()
, then you may not be getting the expected results with this plugin.@ntracer – Please create another topic with full details on your issue.
Forum: Reviews
In reply to: [Custom Posts Per Page] Good, however…Hey xeleema,
Can you describe any issues that made you rate this plugin as 3 stars?
For your issue with the admin/dashboard – you should be able to click on ‘Screen Options’ in the top right and enter in how many posts you want to appear at once for easier bulk editing.
Thanks!
Hey d_alinus2004,
Automatic Featured Image Posts is specifically for new images and posts, so it will not be able to handle the featured images for your old posts. Good luck!
Hey Felicia,
Glad you like the plugin. I’m not sure if I’ll be able to help in this scenario. Automatic Featured Image Posts is intended to create new posts from image uploads. Once those posts are created (automatically), the image is assigned as the featured image. The intended workflow will always start with an image.
There are some filters available that may help you control some stuff – https://jeremyfelt.com/wordpress/2012/04/14/filters-in-automatic-featured-image-posts/ – and I will probably add in an action or two in the next version that will allow you to ignore the plugin for certain image uploads.
Hope that gets you on the right path.
Forum: Plugins
In reply to: [Automatic Featured Image Posts] Using image title, not file name.Ciao!
You actually have full control over the title of each new post through the
afip_new_post_title
filter. There’s a full writeup on the use of the included filters here – https://jeremyfelt.com/wordpress/2012/04/14/filters-in-automatic-featured-image-posts/With the attachment ID provided as the second parameter, you can lookup the original file name via
get_attached_file( $attachment_id );
and strip the path before returning.Hope that helps!
Forum: Plugins
In reply to: [Automatic Featured Image Posts] Pre-filled post contents?Absolutely! I have a post containing some examples of the filters available in Automatic Featured Image Posts here – https://jeremyfelt.com/wordpress/2012/04/14/filters-in-automatic-featured-image-posts/
By hooking into the ‘afip_new_post_content’ filter, you can adjust the content for each post/image as it goes through the system.
3×7,
Can you expand your question a bit? I’m not exactly sure what you’re looking for.
There are a several filters available for use with Automatic Featured Image Posts that you may want to check out – jeremyfelt.com/wordpress/2012/04/14/filters-in-automatic-featured-image-posts
Thanks!
Duplicate, closing.
I hope you were able to find your answer, and I hope somebody got some awesome cookies, though it seems this isn’t related to the plugin, Automatic Featured Image Posts.
This plugin does not change any of the templates that should modify arrangement. You may want to look at your theme code instead.
Hey, sorry about the delay on fixing this issue. I didn’t see a notification for this forum post.
This issue should be fixed as of tonight’s update (0.8). The date setting used previously didn’t work in all setups, but will now match what your WordPress install is set to.
From what I’m reading in the prev/next plugin’s code, that last try should be exactly what you need.
I think using @jkudish’s plugin to create the CPT and taxonomies is fine as long as ‘client-type’ is the right slug used to register the taxonomy.
If there are any other plugins installed that could be using the
get_{$adjacent}_join
or other related filters, then that could change something.Seems like we need to get the patch working in core for real.
Close. ??
Do ‘client’ post types have more than one ‘client-type’ assigned to them? I.e. Case Study and Retail & Hospitality
If that was the case, even though it’s staying in the same taxonomy, it may be picking up the wrong ‘client-type’ as the one to stay inside. I haven’t read through the code enough to know for sure, but it seems possible.
If that is the case, you could exclude all of the other ‘client-type’ terms by their IDs:
be_next_post_link( '%link', 'See Next Case Study', true, '5,6,7', 'client-type' );
… where term IDs 5,6,7 are associated with a client-type that is not a case study. That would be a little more annoying to manage, but could get you there.
Got it. It seems like the correct syntax should then be:
be_next_post_link( '%link', 'See Next Case Study, true, '', 'client-type' );
That looks for the next post link by staying in the same ‘cat’ (badly named argument) and by using the ‘client-type’ taxonomy.