The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[Plugin: Advanced Most Recent Posts Mod] - Maintaining Image when Hide Post Titl (6 posts)

  1. BritishSoldier
    Posted 5 years ago #

    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.

  2. neonWired
    Posted 5 years ago #

    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.

  3. british soldier
    Posted 5 years ago #

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

  4. neonWired
    Posted 5 years ago #

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

  5. Peter
    Posted 5 years ago #

    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.

  6. 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.


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

Topic Closed

This topic has been closed to new replies.

About this Topic