Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @ksaffy. Thank you so much. I’m so close to fixing this plugin because of you. I thought I’d add the full code that worked with all the event info taken out. The css really helped too. Thank you.

    <?php
    echo "<div class='wpfp-span'>";
        if (!empty($user)):
            if (!wpfp_is_user_favlist_public($user)):
                echo "$user's Favorite Posts.";
            else:
                echo "$user's list is not public.";
            endif;
        endif;
    
        if ($wpfp_before):
            echo "<p>".$wpfp_before."</p>";
        endif;
    
        echo "<ul>";
        echo "<div class='box'>";
       if ( is_user_logged_in() ) {
       global $current_user;
          get_currentuserinfo();
          echo '<h5 class="sub">Welcome ' . $current_user->display_name . "!</h5> ";
    } else {
        echo '<h5 class="sub">Welcome, visitor</h5>';
    }
        echo "Enter your sentence here and change the icon url. Just click <img src='https://www.example.com/heart.png' alt='favourite gigs' width='11'> my favorites 'Add to My Faves' on the shopping page of any product you want to save.<br><br><br><br>";
     echo "</div>";
    
         if ($favorite_post_ids):
         $favorite_post_ids = array_reverse($favorite_post_ids);
    
            foreach ($favorite_post_ids as $post_id) {
                $p = get_post($post_id);
                $l = get_permalink($post_id);  
    
                echo "<ul id='favorite_thumbnails'><li>";
    
    echo "<a href='".get_permalink($post_id)."'>";
    echo get_the_post_thumbnail ( $post_id, 'thumbnail');
    echo "<br>";
    echo "<span><a href='".get_permalink($post_id)."' title='". $p->post_title ."'>" . $p->post_title . "</a></span>";
    echo "<br>";
    wpfp_remove_favorite_link($post_id);
    
                     echo "</li></ul>";
                    echo "</a>";
            }
        else:
       endif;
        echo "";
    echo "<br class='clear'>";
            echo "<br>";
    		echo "<br>";
    				echo "<br>";
        wpfp_clear_list_link();
            echo "<br>";
    		echo "<br>";
            echo "<br>";
    echo "</div>";
        wpfp_cookie_warning();
    ?>

    Also don’t foreget like I did to still create a new page.php template and add this

    <?php
     /*
     Template Name: myfavoritesII
     */
     ?>
    
     <?php get_header(); ?>
    
    <div class="container_12">
    
        <div class="grid_12">
    
    		<?php wpfp_list_favorite_posts();?>
    
    	</div>
    
    </div>
    
    <?php get_footer(); ?>

    Copy exactly your templates page and insert it instead of the loop and posts php.

    Thread Starter dahlia81

    (@dahlia81)

    Hi, great. I think the slider or just a grid of thumbnails on a page would work great.

    The widget that already exists, is list only or the slider?

    Also, is there a way to show the featured image with the list view?

    Thanks again.

    Hi,

    Do you think you could post the whole page, not just the excerpts. I think I can go through and take out anything custom easier. I’ve tried to get your code working and I think I’m missing something basic.

    Excited to get this to work especially the way you have it. I’m on 3.5 and its just not showing up yet. Thanks

Viewing 3 replies - 1 through 3 (of 3 total)