Title: template code URL call permalink
Last modified: August 31, 2016

---

# template code URL call permalink

 *  Resolved [isni](https://wordpress.org/support/users/isni/)
 * (@isni)
 * [10 years ago](https://wordpress.org/support/topic/template-code-url-call-permalink/)
 * Hello, great and simple plugin! works flawless.
 * Though i want to display a share buttons on archive page. I already set to display
   on archive page and excerpt, but since i using qode theme (it use qode_excerpt();
   the share button didnt showed.
 * So i want to use php template code to display.
 *     ```
       <?php if ( function_exists( 'ADDTOANY_SHARE_SAVE_KIT' ) ) {
       ADDTOANY_SHARE_SAVE_KIT( array( 'linkname' => (the_title()), 'linkurl' => (the_permalink()) ) );
       } ?>
       ```
   
 * It is work, the button link is to share the permalink, but it show text of the
   title and the url of permalink before the button.
 * Can you help me to show correct code to make the php code linkurl to post permalink?
 * Thanks
 * [https://wordpress.org/plugins/add-to-any/](https://wordpress.org/plugins/add-to-any/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [micropat](https://wordpress.org/support/users/micropat/)
 * (@micropat)
 * [10 years ago](https://wordpress.org/support/topic/template-code-url-call-permalink/#post-7191907)
 * Hi isni,
 * You want to retrieve the values (instead of displaying) using [`the_title`](https://developer.wordpress.org/reference/functions/the_title/)
   and [`get_permalink`](https://developer.wordpress.org/reference/functions/get_permalink/):
 *     ```
       <?php if ( function_exists( 'ADDTOANY_SHARE_SAVE_KIT' ) ) {
       	ADDTOANY_SHARE_SAVE_KIT( array(
       		'linkname' => the_title('', '', false),
       		'linkurl' => get_permalink()
       	) );
       } ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘template code URL call permalink’ is closed to new replies.

 * ![](https://ps.w.org/add-to-any/assets/icon.svg?rev=972738)
 * [AddToAny Share Buttons](https://wordpress.org/plugins/add-to-any/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-to-any/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-to-any/)
 * [Active Topics](https://wordpress.org/support/plugin/add-to-any/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-to-any/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-to-any/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [micropat](https://wordpress.org/support/users/micropat/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/template-code-url-call-permalink/#post-7191907)
 * Status: resolved