aikuyang / wedevs-favorite-post

Yet another favorite post plugin for WordPress

Home Page:https://wordpress.org/plugins/favorite-post/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Favorite Posts

This is a simple yet another favorite post plugin.

Features

  1. Gives a button to favorite a post.
  2. Works only for logged in users.
  3. Has a favorite post widget
  4. Custom post type support

Usage

  1. Insert <?php if ( function_exists( 'wfp_button' ) ) wfp_button(); ?> this code in your post page to show a favorite post link.
  2. $favorites = WeDevs_Favorite_Posts::init()->get_favorites(); - get favorite posts. Supports 3 parameters, post_type, limit, offset. The default post_type is all, for getting all post types.
  3. Show favorite posts in a widget.
  4. Use the shortcode [favorite-post-btn] for inserting the favorite post link. You can also pass a post id as a parameter. [favorite-post-btn post_id="938"].
  5. Use the shortcode [favorite-post] to display favorited posts. You can also pass these parameters: user_id, count, post_type. e.g. [favorite-post user_id="1" count="5" post_type="all"]

Author

Tareq Hasan

About

Yet another favorite post plugin for WordPress

https://wordpress.org/plugins/favorite-post/


Languages

Language:PHP 89.2%Language:JavaScript 7.4%Language:CSS 3.4%