Site logo

Archived topic

Post Title to external URL

3 replies · Started by Richard on June 18, 2019

Viewing posts 1–4 of 4

Hi,

im using Freedzy RSS Plugin to import RSS Feeds to my Blog. However, I do not want to import the whole content rather than link the titel to the original URL.
Feedzy creates an Advanced field called "feedzy_item_url" and includes the origin URL.
Is there an easy way in GP to achieve this?

Many thanks
Richard

Hi there,

I'm not too sure how the theme would handle this. Does the plugin have any instructions on what would be needed on the theme end of things?

Hi Tom,

the Feedzy Plugin just creates a blog post for each title in the feed automatic after a preset time.

I think the easiest way to do this, would be to change the original post permalink to an external URL if its provided in the Advanced field “feedzy_item_url”

Not sure if it will work, but you could try this filter:

add_filter( 'the_permalink', function( $permalink ) {
    $feedzy = get_post_meta( get_the_ID(), 'feedzy_item_url', true );

    if ( $feedzy ) {
        $permalink = $feedzy;
    }

    return $permalink;
} );
This archived topic is closed to new replies.