WP-PostRatings

Por Lester Chan
(179 avaliações)
Baixar
  • Versão:
    2.0.2
  • Última atualização:
    há 7 dias
  • Instalações ativas:
    mais de 20 mil
  • Versão do WordPress:
    6.8 ou maior
  • Testado até o WordPress:
    7.1
  • Versão do PHP:
    8.2 ou maior
  • Tags:

Hospedagem WordPress com plugin WP-PostRatings

Onde hospedar o plugin WP-PostRatings?

Este plugin pode ser hospedado em qualquer provedor que possua WordPress configurado. Recomendamos optar por um provedor de hospedagem confiável, com servidores adaptados para WordPress, como o serviço de hospedagem da MCO2.

Hospedando o plugin WP-PostRatings em uma empresa de hospedagem confiável

A MCO2, além de configurar e instalar o WordPress na versão mais nova para seus clientes, oferece o plugin WP SafePress, um mecanismo singular que salvaguarda e aumenta a performance do seu site simultaneamente.

Por que a Hospedagem WordPress funciona melhor na MCO2?

A Hospedagem WordPress funciona melhor pois a MCO2 possui servidores otimizados para WordPress. A instalação de WordPress é diferente de uma instalação trivial, pois habilita imediatamente recursos como otimização de imagens e fotos, proteção da página de login, bloqueio de atividades maliciosas diretamente no firewall, cache avançado e HTTPS ativado por padrão. São recursos que potencializam seu WordPress para a máxima segurança e o máximo desempenho.

WP-PostRatings adds a rating control to any post, page or custom post type. Visitors pick a value, the vote is posted in the background, and the result appears in its place without a page load.

Features

  • Ten rating shapes, drawn with CSS rather than shipped as images, so they stay sharp at any size and cost no HTTP requests — numbers among them, for a scale whose points are read rather than counted.
  • A scale, or a two-way up/down control, with the rated and unrated colours as settings.
  • Template tags and a shortcode for the highest rated, most rated, lowest rated and highest scoring posts, optionally within a category, a tag or a time range.
  • A rating log with sortable columns, filters, bulk delete and Screen Options.
  • Google rich snippet markup for the post and its aggregate rating.
  • A sidebar widget, and a section on the WP-Stats page when that plugin is installed.

Doações

Eu passo a maior parte do meu tempo livre na criação, atualização, manutenção e suporte desses plugins, se você realmente ama meus plugins e pode me enviar alguns dólares, eu realmente aprecio isso. Mas do contrário, sinta-se livre para usá-los sem quaisquer obrigações.

Uso

The simplest way, and the only one that works in a block theme without editing template files, is the shortcode. Put it in the post or page you want rated:

  • [ratings] rates the post it appears in.
  • [ratings id="1"] shows the rating for post 1, wherever you put it.
  • [ratings id="1" results="true"] shows post 1’s result without letting anyone vote from there.

To put ratings on every post automatically, a classic theme can call the template tag from single.php, archive.php or index.php, anywhere inside the loop:

<?php the_ratings(); ?>

The settings live at WP-Admin -> Ratings -> Settings, which has a Settings tab and a Templates tab.

Showing A Rating In A Block

A Ratings block is available in the editor, under Widgets. Two settings in the sidebar:

  • Post ID — leave it at zero to rate the post the block sits in, which is what an empty [ratings] does, or give an id to show another post’s rating wherever you put the block.
  • Show the result only — displays the rating without offering to change it, for putting a post’s score somewhere it should not be voted from. This is what results="true" does.

It renders on the server, so the preview in the editor is the real rating rather than an approximation, and changing your shape, colours or templates updates every post showing it without re-saving anything. The preview is deliberately not clickable: rating from the editor would record a real vote.

The shortcode still works and is not going anywhere. [ratings], [ratings id="1"] and [ratings id="1" results="true"] behave exactly as they always have, and a post already containing one needs no change. The block calls the same code the shortcode calls, so the two render identically — use whichever suits the post.

WP-CLI

wp postratings list
wp postratings list --limit=50 --format=json
wp postratings get 42
wp postratings delete 42 --yes
wp postratings delete --all --what=logs

A rating lives in two places — the running totals each post displays, and a row per vote in the log. --what chooses which to clear: logs, data or both, and both is the default.

REST API

GET  /wp-json/postratings/v1/post/<id>
POST /wp-json/postratings/v1/post/<id>/rate

Reading is public, because a rating is public. Rating takes the same wp_postratings_<id>-nonce the rendered control already carries, passed as a nonce parameter, and is subject to the same eligibility and repeat-rating settings as rating through the page.

Each response carries the rendered markup as well as the numbers, because your templates and your chosen shape decide what a rating looks like.

A refusal answers 403, not 400 — a rating already cast, a rating off the end of the scale, a bad nonce. 400 is kept for a parameter this plugin never had a chance to look at. A post that does not exist answers 404, and so does one you are not allowed to rate — a draft belonging to somebody else answers exactly as a deleted post does, rather than confirming it is there.

These routes are an addition. The admin-ajax.php wp_postratings action is unchanged and still supported.

Capturas de tela

Ratings -> Settings: the shape, the scale, who may rate, and how a repeat is spotted

Ratings -> Settings: the shape, the scale, who may rate, and how a repeat is spotted

The Templates tab, holding the markup of the control and of every result

The Templates tab, holding the markup of the control and of every result

Ratings -> Logs, every vote with who cast it, filterable by user and by rating

Ratings -> Logs, every vote with who cast it, filterable by user and by rating

The control in a post with a star under the pointer, and the same rating read-only below

The control in a post with a star under the pointer, and the same rating read-only below

The Ratings block in the editor, previewing the control for the post it is pointed at, with the sidebar choosing that post and whether the rating can be cast or only read

The Ratings block in the editor, previewing the control for the post it is pointed at, with the sidebar choosing that post and whether the rating can be cast or only read

Plugins semelhantes

Rich Showcase for Google Reviews
(1.609 avaliações)

Show real Google reviews on your WordPress site in under a minute. Free, GDPR-compliant, with unlimited widgets and locations.

Site Reviews
(371 avaliações)

Site Reviews is the best free reviews plugin. It integrates with WooCommerce & SureCart and works just like reviews on Amazon, Tripadvisor, and Yelp.

WP ULike – Like Buttons, Voting & Engagement Analytics
(281 avaliações)

One-click like buttons your visitors actually use, plus a built-in analytics dashboard that shows what your audience loves. No vote limits.

WP-Polls
(136 avaliações)

Adds an AJAX poll system to your WordPress blog. You can also easily add a poll into your WordPress's blog post/page.

ReviewX – Multi-Criteria Reviews for WooCommerce with Google Reviews & Schema
(85 avaliações)

Aumente o crescimento dos negócios do woocommerce com prova social: reúna avaliações de produtos com classificações com vários critérios, e-mails de lembrete automático, descontos e muito mais.

Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls
(91 avaliações)

Poll Maker é um plugin de enquete GRATUITO para WordPress que permite criar enquetes on-line personalizáveis ​​​​e profissionais e votar em seu site WordPress.

Do mesmo author (Lester Chan)

WP-PageNavi
(149 avaliações)

Adiciona uma interface de navegação de páginas mais avançada.

WP-Sweep
(138 avaliações)

WP-Sweep allows you to clean up unused, orphaned and duplicated data in your WordPress. It also optimizes your database tables.

WP-PostViews
(65 avaliações)

Enables you to display how many times a post/page had been viewed.

WP-DBManager
(95 avaliações)

Manages your WordPress database.

WP-Polls
(136 avaliações)

Adds an AJAX poll system to your WordPress blog. You can also easily add a poll into your WordPress's blog post/page.

WP-UserOnline
(38 avaliações)

Enable you to display how many users are online on your WordPress site with detailed statistics.