• Resolved aand

    (@aand)


    This plugin is great, but there are two big drawbacks/omissions:

    1. Images are shown below the title, which is odd
    2. Those eye-catching story images are not clickable

    There’s an extremely simple way to fix that. Disclaimer: Proceed at your own risk. You’ll need to know how to edit a plugin php file and re-upload it – devs, could you please add this tweak to upcoming versions?

    Here’s how to do it in v1.4.0:

    Edit the file in the /inc/classes folder called RSS_Retriever_Feed.php

    and move lines 92 and 93 – ie these:
    $output .= $item->title;
    $output .= ‘‘;

    Down BELOW line 103 (ie BELOW the line that says $output .= ‘</div>’;)

    Save and upload the updated file, and you’re all set. The plugin will now display images, then titles – and those big, eye-catching images will now actually be clickable. Again, I hope the devs can add this change going forward as it fixes to major drawbacks to this otherwise excellent plugin.

Viewing 1 replies (of 1 total)
  • Plugin Author Travis

    (@tjtaylor)

    Hello,

    Due to popular demand I’ve made all images links by default. In addition, I’ve set up a filter where you can control the order of the output. For example, this code snippet will set the thumbnail to be the first element:

    (Add this code to your themes functions.php file)

    function custom_rss_layout_callback( $layout ) {
        $layout = array(
            'thumbnail',
            'title',
            'content',
            'postdata',
        );
        return $layout;
    }
    add_filter( 'wp_rss_retriever_layout', 'custom_rss_layout_callback' );

    In addition, you can add your own HTML to the output if you wanted to wrap elements. Example:

    $layout = array(
        '<div class="my-custom-class">',
            'thumbnail',
            'title',
            'content',
            'postdata',
        '</div>'
    );

    Or, if you only wanted to display the title:

    $layout = array(
        'title',
    );

    Hopefully, this creates some flexibility.

Viewing 1 replies (of 1 total)
  • The topic ‘Change these 2 lines to greatly improve images & titles in this plugin:’ is closed to new replies.