Add Atribute Custome Fields Display

<?php $args = array( ‘orderby’         => ‘post_date’, ‘order’           => ‘DESC’, ‘post_type’       => ‘slider’, ‘post_status’     => ‘publish’ ); $slider_posts=get_posts(  $args ); foreach ($slider_posts as $slider_post) { $meta_values = get_post_meta($slider_post->ID, ‘Link’, $single); $metas = explode(“\n”, $meta_values[0]); foreach($metas as $meta) { echo ‘<li>’.$meta.'</li>’; } } die(); ?> Advertisements

Rate this: