Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
$url = esc_url( get_post_meta( $post->ID, '_project-url', true ) );
if ( ! empty( $url ) {
printf( '<p>%s</p>', $url );
}
?>
<?php
$url = esc_url( get_post_meta( $post->ID, '_project-url', true ) );
if ( ! empty( $url ) {
printf( '<p>%s</p>', __( $url, 'wpp-portfolio' ) );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment