WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Specify the correct URL for sharing

[Resolved] Specify the correct URL for sharing

  • webtomeasure
    Member

    @webtomeasure

    In archive pages I am finding that the URL of the last archive item is being shared rather than the URL of the archive page. How do I specify the correct URL to be shared? I am using the call

    <?php if ( function_exists( 'ADDTOANY_SHARE_SAVE_KIT' ) ) { ADDTOANY_SHARE_SAVE_KIT(); } ?>

    I was wondering can I specify the correct URL somehow in that call?

    https://wordpress.org/plugins/add-to-any/

Viewing 1 replies (of 1 total)
  • Plugin Author micropat
    Participant

    @micropat

    Yes you can. From the FAQ:

    <?php if ( function_exists( 'ADDTOANY_SHARE_SAVE_KIT' ) ) {
        ADDTOANY_SHARE_SAVE_KIT( array( 'linkname' => 'Example Page', 'linkurl' => 'http://example.com/page.html' ) );
    } ?>

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Specify the correct URL for sharing’ is closed to new replies.