WordPress.org

Forums

  1. Koli14
    Member
    Posted 1 year ago #

    Hey!

    I wan't to make links with Types.
    I solved it with to 'single line' filed, like: 'Title for links', and 'URL for links'. I wan't to allow multiple instances.
    My problem is that, i don't get in the same order the 'titles', as the 'URL'-s.
    Any suggestion, how to solve it?

    <?php $link_texts = get_post_meta($post->ID,'wpcf-link_texts');
    $link_urls = get_post_meta($post->ID,'wpcf-link_urls');
    if ( count($link_urls) ==  count($link_texts) ){
     for($i = 0, $size = count($link_urls); $i <= $size; ++$i) {
      echo '<li><a href="' . $link_urls[$i] . '" target="_blank">' . $link_texts_ru[$i] .' </a></li>';
     }
    }

    http://wordpress.org/extend/plugins/types/

  2. mbigul
    Member
    Plugin Author

    Posted 1 year ago #

    Dear Koli14,

    Please explain little more for better understanding.

    [ Signature moderated. ]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic