I´d like to echo the post name instead post id. My code shows just the id.
<?php
global $post;
$customlink = get_post_meta( $post->ID, 'clink', true );
echo $customlink;
?>
Thanks
Ogni
|
I´d like to echo the post name instead post id. My code shows just the id.
Thanks |
|||
|
|
|
Does this meta field store some other post's ID, of which you want to retrieve the post name? If so, try this
|
|||
|
|
Like that? |
|||
|
|