• Resolved Gabums

    (@gabums)


    Hi there! I’m using WordPress 5.2.4, and Feedzy version 3.3.11. My shortcode looks like this:
    [feedzy-rss feeds="https://sampleurl.com/feed/" max="5" feed_title="no" refresh="1_hours" target="_blank" meta="date, time, tz=local" summary="yes" ]

    I’m using the code from your documentation to add the read more link:

    function bweb_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', 'bweb_feedzy_readmore', 9, 3 );

    I’ve also tried:

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

    The read more link is not showing up. Any thoughts on why?

    Thanks so much!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor contactashish13

    (@rozroz)

    @gabums can you please share the following?

    • the link of the page where you have used this shortcode
    • the valid feed url
    Thread Starter Gabums

    (@gabums)

    Hi there!

    The feed code is
    [feedzy-rss feeds="https://events.ibx.com/events/category/wellness/feed/" max="5" feed_title="no" refresh="1_hours" target="_blank" meta="date, time, tz=local" summary="yes" ]

    The website I’m linking to is https://innovation.ibx.com/events-feed/

    Thank you!

    Plugin Contributor contactashish13

    (@rozroz)

    @gabums the read more link appears only when the string [...] exists in the description. The description in your feed appears to only contain ... (here). You can change the code to this:

    
    function bweb_feedzy_readmore( $content, $link, $feedURL ) {
        $content = str_replace( array( 'a€|', '…', '...', '&hellip;' ), '<a href="' . $link . '" target="_blank">' . __('Read more', 'yourTextDomain') . ' &rarr;</a>', $content );
        return $content;
    }
    add_filter( 'feedzy_summary_output', 'bweb_feedzy_readmore', 9, 3 );
    
    Plugin Contributor contactashish13

    (@rozroz)

    Closing this with the assumption that this is no longer a problem. If it still exists, please open a new ticket.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“Read more” link help’ is closed to new replies.