Automatic Featured Image Posts
[resolved] Using image title, not file name. (3 posts)

  1. eyephone21
    Posted 2 years ago #

    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!


  2. Jeremy Felt
    Plugin Author

    Posted 2 years ago #


    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 - http://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!

  3. eyephone21
    Posted 2 years ago #

    Thank you so much.
    First my apologies, i did't search enough (or at all! :=) )
    Now it's a little late but tomorrow i'll study, i swear!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Automatic Featured Image Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.