• Resolved saani

    (@saani)


    Hello. I′m using FeedWordpress for creating new posts automatically from feed. Feed contain urls as text.
    Auto-hyperlink URLs did not work with these posts. Any advice how to get it working?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    @saani: Hi,

    Most cases like this you’d need to associate a custom filter provided by that plugin with the handler provided by Auto-hyperlink URLs.

    Just quickly skimming the code for FeedWordPress, it seems the filter in question might be syndicated_item_content.

    Unfortunately you’d need to add a short bit of code to your site. Ideally this would added within something called a site-specific plugin. Or it could be added to your active theme’s functions.php file. Either way, you’ll find more in-depth instructions on how to go about doing either of those things elsewhere on the web.

    But the specific code you’ll need to add would be:

    
    function fwp_autohyperlink_filter( $filters ) {
        $filters[] = 'syndicated_item_content';
        return $filters;
    }
    add_filter( 'c2c_autohyperlink_urls_filters', 'fwp_autohyperlink_filter' );
    

    In a future version of the plugin (likely the next) I’ll add an input field where you can simply supply “syndicated_item_content” and achieve the same results without needing custom code.

    Thread Starter saani

    (@saani)

    Thank you!

    • This reply was modified 4 years, 8 months ago by saani.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Auto-hyperlink URLs and FeedWordPress’ is closed to new replies.