Viewing 1 replies (of 1 total)
  • Thread Starter cmssanderson

    (@cmssanderson)

    My bad, I’ve just realised you need to drop wpfp-page-template.php into the root of your template with the filename intact (I was trying to copy the code into my own template).

    You’ll also need to add this at the top:

    global $favorite_post_ids;
    if (!empty($user)):
    	if (!wpfp_is_user_favlist_public($user)):
    		$favorite_post_ids = wpfp_get_users_favorites($user);
    	endif;
    else:
    	$favorite_post_ids = wpfp_get_users_favorites();
    endif;
Viewing 1 replies (of 1 total)

The topic ‘Avoiding template changes being overwritten on plugin update’ is closed to new replies.