AddToAny Share Buttons
[resolved] Specify the correct URL for sharing (2 posts)

  1. webtomeasure
    Posted 1 year ago #

    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?


  2. micropat
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • AddToAny Share Buttons
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic