Skip to content

WordPress Plugin for rating posts and order by average rating

Notifications You must be signed in to change notification settings

lucaspalencia/simple-wp-rating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple WP Rating Plugin

WordPress Plugin for rating posts and order by average rating.

Contributors: lucaspalencia
Requires at least: 4.1
Tested up to: 4.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Admin Options (Tools -> Simple WP Rating):

  • Posts per page for swr_posts shortcode / swr_get_posts method. (default: 10)
  • Update post rating only when comment is approved: The post rating will be updated only after comment get approved by admin. (default: false)

Display posts by rating

Shortocde

[swr_posts]

PHP

$posts_swr = Simple_WP_Rating::swr_get_posts();

if( $posts_swr->have_posts() ) {

	while( $posts_swr->have_posts() ) {
		$posts_swr->the_post();

		//custom loop
	}

} 
wp_reset_postdata();

Display post stars

Shortcode

[swr_stars]

PHP

Simple_WP_Rating::swr_show_post_stars();

About

WordPress Plugin for rating posts and order by average rating

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published