“Read more” link help
-
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( '[…]', '<a href="' . $link . '" target="_blank">' . __('Read more', 'yourTextDomain') . ' →</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€|]', '[…]', '[…]' ), '<a href="' . $link . '" target="_blank">' . __('Read more', 'yourTextDomain') . ' →</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)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘“Read more” link help’ is closed to new replies.