• Resolved Sascha_Foerster

    (@sascha_foerster)


    Feedwordpress and Jetpack Publicize: Use syndicated links for social media postings

    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 and posted twice.
    Once with the WordPress-permalink (linking to the website itself) and once with the “correct” link to the syndicated website.

    /**
     * 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);
    }
    ?>

    I tried it with both items:
    https://feedwordpress.radgeek.com/wiki/get_syndication_permalink/
    https://feedwordpress.radgeek.com/wiki/the_syndication_permalink/

    Thanks a lot!

    https://www.ads-software.com/plugins/jetpack/

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