Viewing 1 replies (of 1 total)
  • Hello Kaye,

    Since you are using WCK Pro which is a premium plugin please submit a support ticket because we are not allowed to offer support for paid plugins on these free forums.

    We will need to use the get_permalink() function in order to retrieve the post link like so:

    <?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 );
                 $title = $my_post->post_title;
                 $permalink = get_permalink ($my_post);
             echo "<a href='$permalink'>$title</a>";
           }
         }
    ?>

    Let me know if it works for you.

    Best regards,

Viewing 1 replies (of 1 total)

The topic ‘display custom post type link’ is closed to new replies.