Putting the link to favorites on the index page
I’d like to also put a button for the favorites on the index page so subscribers can log in and simply click on their favorites. I tried copying the button from the details.php page to the index.php page… and I copied the code that grabs the userID as well. Unfortunately it doesn’t work unless you’ve previously visited the details page and you’ve viewed favorites.
What additional code do I have to copy to the index page so this can work?