WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Advanced Most Recent Posts Mod] – Maintaining Image when Hide Post Titl

[Plugin: Advanced Most Recent Posts Mod] – Maintaining Image when Hide Post Titl

  • BritishSoldier
    Member

    @britishsoldier

    Is there a way of keeping the image (Thumbnail) in place once the ‘Hide post title?’ option has been ticked. (If you tick the ‘Hide post title?’ option, it also hides the image).

    I find that if you have text (title) with a small image it displays to the left; but if you make the image large enough it displays underneath. (I want to use small images with either no title or the text underneath).

    Please advise.

Viewing 5 replies - 1 through 5 (of 5 total)
  • neonWired
    Member

    @neonwired

    I had the same issue with this plugin and hacked it. If you find this line around line 455:

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

    and replace it with:

    if (!$hideposttitle) {
    	$postlist .= '<a href="' . get_permalink($post->ID) . '" title="'. $post_title .'" >' . $image . $post_title .'</a>';
    } else {
    	$postlist .= '<a href="' . get_permalink($post->ID) . '" title="'. $post_title .'" >' . $image . '</a>';
    }

    so if hide post titles is set to true it displays an image link instead of nothing.

    british soldier
    Member

    @british-soldier

    Thanks for the response. I resolved it the easy way. I stopped using the plugin. :0)

    neonWired
    Member

    @neonwired

    YD recent posts widget will do what you need without any hacking but i needed multiple instances which it doesn’t do.

    Peter
    Member

    @mischkep

    Same issue. Took me me two hours to find out why because i am currently a learner. Just wanted to post exactly the same Hack but neon was 15 hours faster :o). I also tried YD but struggeled when trying to align the thumbs horizontally and hiding the post title.

    I’ve actually just released a new plugin based on this one that has better options. AMRP’s widget options are getting a bit unruly…

    Easier to specify what elements (title, excerpt, image…) should be used and where they should go.

    http://wordpress.org/extend/plugins/mini-loops/

    Please keep in mind that the new version is, well, new. So please be kind and report bugs.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Advanced Most Recent Posts Mod] – Maintaining Image when Hide Post Titl’ is closed to new replies.