• Resolved isni

    (@isni)


    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://www.ads-software.com/plugins/add-to-any/

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

    (@micropat)

    Hi isni,

    You want to retrieve the values (instead of displaying) using the_title and 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.