WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. eyephone21
    Member
    Posted 1 year 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!

    http://wordpress.org/extend/plugins/automatic-featured-image-posts/

  2. Jeremy Felt
    Member
    Plugin Author

    Posted 1 year ago #

    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 - 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
    Member
    Posted 1 year ago #

    Wow!
    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

About this Topic

Tags

No tags yet.