• Resolved mikemc2410

    (@mikemc2410)


    Hi, the code for read more link used to be entered into the feedzy-rss-feeds-shortcode.php as below

    add_shortcode( 'feedzy-rss', 'feedzy_rss' );
    function bweb_feedzy_readmore( $content, $link, $feedURL ) {
        $content = str_replace( '[…]', '<a href="' . $link . '" target="_blank">' . __('Read more', 'yourTextDomain') . ' &rarr;</a>', $content );
        return $content;
    }
    add_filter( 'feedzy_summary_output', 'bweb_feedzy_readmore', 9, 3 );

    and this worked. Were does it have to be entered now as there is no feedzy-rss-feeds-shortcode.php in the latest free version.

    Regards

    Mike McCormack

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WPShout

    (@codeinwp)

    Hey,

    You dont need to edit the plugin files, just add the code in your functions.php of your theme or child theme.

    Thanks !

    Thread Starter mikemc2410

    (@mikemc2410)

    Hi, sorry, this is not resolved yet.
    The following code to replace the hellip with read more link does not work,

    function tifd_feedzy_readmore( $content, $link, $feedURL ) {
        $content = str_replace( '[&hellip;]', '<a href="' . $link . '" target="_blank">' . __('Read more', 'yourTextDomain') . ' &rarr;</a>', $content );
        return $content;
    }
    add_filter( 'feedzy_summary_output', 'tifd_feedzy_readmore', 9, 3 );

    The following code just to remove the hellip does not work,

    function tifd_feedzy_remove_hellip( $content,  $feedURL ) {
        $content = str_replace( ' [&hellip;]', '', $content );
        return $content;
    }
    add_filter( 'feedzy_summary_output', 'tifd_feedzy_remove_hellip', 9, 2 );

    The following code to add a read more link does work but there is still a hellip in place that is not required.

    function tifd_feedzy_readmore( $content, $link, $feedURL ) {
        $content .= '<a href="' . $link . '" target="_blank">' . __('Read more', 'yourTextDomain') . ' &rarr;</a>';
        return $content;
    }
    add_filter( 'feedzy_summary_output', 'tifd_feedzy_readmore', 9, 3 );

    Please can you give me working code to replace the hellip with a read more link.

    Regards

    Mike McCormack

    mdshak

    (@mdshak)

    This shortcode will work definetly. Paste this code at functions.php of child theme.

    function bweb_feedzy_readmore( $content, $link, $feedURL ) {
        $content = str_replace( '[…]', '<a href="' . $link . '" target="_blank">' . __('Read more', 'yourTextDomain') . ' &rarr;</a>', $content );
        return $content;
    }
    add_filter( 'feedzy_summary_output', 'bweb_feedzy_readmore', 9, 3 );
    Thread Starter mikemc2410

    (@mikemc2410)

    Hi, sorry that does not work either, it also looks like an older solution with ‘bweb’ instead of ‘tifd’ that is shown in the latest documentation at here.

    Just to confirm, I am using Feedzy RSS Feeds Lite version 3.0.9.

    Regards

    Mike McCormack

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Read more link’ is closed to new replies.