We're merging with GenerateBlocks! Learn more here.

Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Meta fields as buttons in hook Reply To: Meta fields as buttons in hook


Ok i realized i asked you a similar question before and this is how far i have come now

//Kundcase show links instead of content
add_action( 'wpsp_before_content','wpsp_add_custom_meta' );
function wpsp_add_custom_meta()
    $meta = get_post_meta( get_the_ID(), 'kundcase_site_url', true );

    if ( isset( $meta ) && '' !== $meta )
        echo '<a class="button" href="'.$meta.'">Besök sidan</a>';

How can i fetch and show post permalink beside this link?