Results 1 to 1 of 1

Thread: Add to Favourites on sidebar

  1. #1
    Thread Starter
    Junior Member nelvis's Avatar
    Join Date
    Sep 2010
    Location
    Kenya
    Posts
    48
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Add to Favourites on sidebar

    Hi,

    I am trying to show the favourite listings on the sidebar rather than the user dashboard. I tried the following, it some what works but it shows the favourite listings of the admin rather then the current logged in user. Any help would be appreciated

    PHP Code:
    <?php
                            $favorites 
    va_get_dashboard_favorites($user->ID, (bool) $is_own_dashboard );
                            
    $counter 0;
                            
    $max 3;
                            
                            if ( 
    $favorites->post_count ) {
                            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_permalinkget_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>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Star sign in My favourites in menu
    By kumi in forum Simply Responsive
    Replies: 2
    Last Post: February 8th, 2014, 11:54 AM
  2. Dimitris Add to Favourites Does not show login msg on content listing page
    By nelvis in forum Report Vantage Bugs (Legacy)
    Replies: 9
    Last Post: January 12th, 2014, 02:37 AM
  3. Cookie based add to favourites for Vantage?
    By red20me in forum Vantage General Discussion (Legacy)
    Replies: 1
    Last Post: August 5th, 2013, 03:52 PM
  4. [SOLVED] Heading for Favourites?
    By getawaydigital in forum Report Vantage Bugs (Legacy)
    Replies: 4
    Last Post: October 7th, 2012, 05:19 PM
  5. [SOLVED] Tag or add CV/resumes to favourites
    By knowlesy27 in forum Vantage General Discussion (Legacy)
    Replies: 2
    Last Post: August 16th, 2012, 10:38 AM