[Support request] Post Title to external URL

Home Forums Support [Support request] Post Title to external URL

Home Forums Support Post Title to external URL

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #933770
    Richard

    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

    #933939
    Tom
    Lead Developer
    Lead Developer

    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?

    #934135
    Richard

    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”

    #934459
    Tom
    Lead Developer
    Lead Developer

    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;
    } );
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.