display custom post type link
-
I’m currently using this:
<?php
$my_meta = get_post_meta( $post->ID, ‘storyauthorname’, true );
if( !empty( $my_meta ) ){
foreach( $my_meta as $entry ){
$post_id = $entry[‘author-name’];
$my_post = get_post( $post_id );
echo $my_post->post_title;
}
}
?>to display the title, but I would like the link to display instead. Can you help me with that?
https://wordpress.org/plugins/wck-custom-fields-and-custom-post-types-creator/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘display custom post type link’ is closed to new replies.