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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: