WordPress.org

Support

Support » Plugins and Hacks » FeedWordPress » [Resolved] Feedwordpress and Jetpack Publicize: Use syndicated links for social media posti

[Resolved] Feedwordpress and Jetpack Publicize: Use syndicated links for social media posti

  • How can I change Jetpack to use the syndicated link from Feedwordpress for social media postings instead of the permalinks linking to the website itself?
    I tried to change it with a adapted plugin, but then all my posts get duplicated:

    /**
     * Init plugin
     */
    function UsePermalinks_init()
    {
    	add_filter( 'get_shortlink', 'UsePermalinks_get_shortlink' );
    }
    add_action( 'init', 'UsePermalinks_init');
    
    /**
     * Return the permalink instead of the ugly ugly shortlink
     */
    function UsePermalinks_get_shortlink()
    {
    	global $post;
    
    	if ( !$post )
    		return;
    
    	return the_syndication_permalink($post->ID);
    }
    
    ?>

    https://wordpress.org/plugins/feedwordpress/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Feedwordpress and Jetpack Publicize: Use syndicated links for social media posti’ is closed to new replies.
Skip to toolbar