<?php
$favorites = va_get_dashboard_favorites($user->ID, (bool) $is_own_dashboard );
$counter = 0;
$max = 3;
if ( $favorites->post_count > 0 ) {
while ( $favorites->have_posts() and ($counter < $max)) : $favorites->the_post();
$post_status = $is_own_dashboard ? 'post-status' : '';
?>
<article id="post-<?php the_ID(); ?>" <?php post_class( $post_status ); ?>>
<?php
echo html( 'a', array(
'href' => get_permalink( get_the_ID() ),
'title' => get_the_title(),
'rel' => 'bookmark',),
get_the_listing_thumbnail());
?>
<strong><a href="<?php echo get_permalink($ID); ?>"><?php echo get_the_title($ID); ?></a></strong>
<p class="listing-cat"><?php the_listing_categories(); ?></p>
</article>
There are currently 1 users browsing this thread. (0 members and 1 guests)