Support » Plugin: Custom Content Type Manager » How to display post title on relation field

  • Resolved sandras21

    (@sandras21)


    Thanks for great plugin! I created 2 custom content types – books and authors. Now I want to display name and link to specific author under the books. I made custom relation field for that and set as output filter “Link href only”. However it displays link to specific Author but how could I change it so, that the name of the link will be taken from the Title field of Autor posts?
    <?php
    $hrefs = get_custom_field(‘Autor:to_link_href’,’http://yoursite.com/default/page/’);
    foreach($hrefs as $h) {
    printf(‘What shall i write here?
    ‘, $h);
    }
    ?>

    Thanks for advice:)

    https://wordpress.org/plugins/custom-content-type-manager/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to display post title on relation field’ is closed to new replies.