plugin-name.php
to the /wp-content/plugins/
directory<?php do_action('plugin_name_hook'); ?>
in your templatesThe plugin will work straight out of the box, however there are a couple of config options you can change at the top of 'favourite.php'. Most importantly the category name for storing your favourite posts (default category is 'Favourite' - this will be created automatically if it doesn't already exist).
If you used Code-1. You will see a 'Set/Unset Favourite' link displayed under each post, simply click this link to toggle the favourite status for that post.
you can simply add/remove the post from the favourite category in the Wordpress admin. Once a post is set to Favourite a heart icon will appear under the post indicating that it is of noteworthy status. The div surrounding this image has a class of 'notew' to enable you to give it custom styling. You can further modify the html code spat out by editing the function named 'ssfav_favouriteIcon' near the bottom of favourite.php'.
Copy the image from the images folder from the 'ssdFavourite/images' and place it in your '{YOUR THEME}/images' folder.