When your website means business.

PHP, WP/CP | Type: PHPAdding an edit tag in PHP conditional

Add [EDIT] in a PHP conditional, with style tags surrounding:

if (is_singular( 'experience' )) {
    $date = get_the_date('F d, Y');
    echo '<p class="entry-meta"><span class="pointer">«</span>';
    echo '<a href="/health-experiences">Return to Health Experiences</a> | '.$date; edit_post_link( __('[EDIT]', 'textdomain'), ' | <span class="small">', '</span>' );
    echo '</p>';
}

Menu
We use cookies in order to give you the best possible experience on our website. By continuing to use this site, you agree to our use of cookies.
Accept
Cookies Notice