WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Most Recent Posts
Where to add "alt" tags (11 posts)

  1. JHouse
    Member
    Posted 3 years ago #

    Hi,

    This plugin is working really well, it would just be great if it automatically displayed "alt" tags so the markup validates properly. Any ideas on how I can achieve this?

    Also, it would be awesome to have the option not to display the text, just thumbnails in certain cases.

    Thanks for a great plugin!

    http://wordpress.org/extend/plugins/advanced-most-recent-posts/

  2. I'm not promising any sort of time line, but I'll try to work these options into my fork of this plugin

    http://wordpress.org/extend/plugins/advanced-most-recent-posts-mod/

    If you wanted to hack the plugin yourself, you could remove the text by editing line 234

    from $postlist .= '<li><a href="' . get_permalink($post->ID) . '" title="'. $post_title .'" >' . $image . $post_title . '</a>' . $excerpt . "</li>";

    to $postlist .= '<li><a href="' . get_permalink($post->ID) . '" title="'. $post_title .'" >' . $image . '</a></li>';

    Not sure of the exact change to add an alt tag right now, but for that, you'd probably need to edit line 208

  3. JHouse
    Member
    Posted 3 years ago #

    Bitchin', thanks for the info. I see you listen to a lot of music; what genres do you like, if you don't mind me asking? I produce and DJ, so I'm kinda curious.

    Thanks again for this handy plugin.

    Peace.

  4. The original plugin is not mine, so I can't take any credit for that. I just needed more options then that plugin provided, so I've forked it made my modifications available to anyone who wants them.

    As for what I listen to: http://www.last.fm/user/trepmal

  5. I've just submitted version 1.5 (as a dev release only) which adds an option to the widget for showing/hiding the post title as well as a few other options.

    http://wordpress.org/extend/plugins/advanced-most-recent-posts-mod/download/

    it appears to work just fine, but until I fully test the update from 1.4, I'm leaving it as a dev-download only

  6. JHouse
    Member
    Posted 3 years ago #

    WOW, you are on it! I will try it out shortly.

    Thanks.

  7. JHouse
    Member
    Posted 3 years ago #

    Okay, it works. Yayyy! I like the feature "Display Title" or something like that, thanks for implementing that.

    The alt tags still aren't there, thus the markup doesn't validate. Should I just do that myself? My concern is when I update this plugin in the future...I don't want to override my edits, then have to do it again.

    Thanks again.

  8. For now, you can hard-code an empty alt tag into the plugin (line 400 or so, look for "if ($img))

    I haven't yet added the code to grab the alt tag from an existing image.

  9. JHouse
    Member
    Posted 3 years ago #

    Thank you, that worked perfectly.

    Have a great day!

  10. nikasama83
    Member
    Posted 3 years ago #

    ahhhhh, im loving the new features you added. Thank you.

    I have a request/question:

    How do i set the Thumbnail Custom Field Name to actually use the Featured Image from the post/custom type ? Can i define what size of thumbnail to use?

    If this is not possible right now, it would be nice to add it.

    Thanks again!

  11. It's not a possibility right now, but I'll certainly consider incorporating this into a future release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic