New to Translating WordPress? Read through our Translator Handbook to get started. Hide
| Prio | Original string | Translation | — |
|---|---|---|---|
| ↑ | Enables you to display how many times a post/page had been viewed. | You have to log in to add a translation. | Details |
Original untranslated
Enables you to display how many times a post/page had been viewed.
You have to log in to edit this translation. |
|||
| ↑ | WP-PostViews | You have to log in to add a translation. | Details |
Original untranslated |
|||
| The screen requires <code>manage_options</code>. The <code>wp_postviews_capability</code> filter is read↵ wherever that gate is checked, so a different capability opens it to whoever holds one: | You have to log in to add a translation. | Details | |
Original untranslated
The screen requires <code>manage_options</code>. The <code>wp_postviews_capability</code> filter is read↵
wherever that gate is checked, so a different capability opens it to whoever holds one:
CommentFound in faq paragraph. You have to log in to edit this translation. |
|||
| Can The Settings Screen Be Handed To Another Role? | You have to log in to add a translation. | Details | |
Original untranslated
Can The Settings Screen Be Handed To Another Role?
CommentFound in faq header. You have to log in to edit this translation. |
|||
| The plugin's <code>js/wp-postviews-cache.js</code> already posts the view and receives the new count back, so you only need to write that count into your div. Add this to your theme, or to a small script of your own enqueued after <code>wp-postviews-cache</code>: | You have to log in to add a translation. | Details | |
Original untranslated
The plugin's <code>js/wp-postviews-cache.js</code> already posts the view and receives the new count back, so you only need to write that count into your div. Add this to your theme, or to a small script of your own enqueued after <code>wp-postviews-cache</code>:
CommentFound in faq paragraph. You have to log in to edit this translation. |
|||
| Go to <code>WP-Admin -> Settings -> WP-PostViews</code> to choose who is counted and how the number reads. | You have to log in to add a translation. | Details | |
Original untranslated
Go to <code>WP-Admin -> Settings -> WP-PostViews</code> to choose who is counted and how the number reads.
CommentFound in installation list item. You have to log in to edit this translation. |
|||
| Show the count where you want it: type <code>[views]</code> into a post, add the <strong>Post Views</strong> block, add the widget, or call <code>the_views()</code> from your theme. | You have to log in to add a translation. | Details | |
Original untranslated
Show the count where you want it: type <code>[views]</code> into a post, add the <strong>Post Views</strong> block, add the widget, or call <code>the_views()</code> from your theme.
CommentFound in installation list item. You have to log in to edit this translation. |
|||
| Install and activate the plugin. Counting starts immediately; you do not have to do anything for the numbers to be recorded. | You have to log in to add a translation. | Details | |
Original untranslated
Install and activate the plugin. Counting starts immediately; you do not have to do anything for the numbers to be recorded.
CommentFound in installation list item. You have to log in to edit this translation. |
|||
| <strong>This route is an addition.</strong> The <code>admin-ajax.php</code> <code>wp_postviews</code> action is unchanged and still supported. | You have to log in to add a translation. | Details | |
Original untranslated
<strong>This route is an addition.</strong> The <code>admin-ajax.php</code> <code>wp_postviews</code> action is unchanged and still supported.
CommentFound in description paragraph. You have to log in to edit this translation. |
|||
| <strong>A refusal answers 403</strong> — a bad nonce, or a site that counts views while the page renders. A post that does not exist is 404. | You have to log in to add a translation. | Details | |
Original untranslated
<strong>A refusal answers 403</strong> — a bad nonce, or a site that counts views while the page renders. A post that does not exist is 404.
CommentFound in description paragraph. You have to log in to edit this translation. |
|||
| <strong>It is refused unless the site defers counting</strong> — that is, unless it has a page cache and has turned the AJAX counting path on. Otherwise the view has already been counted while the page rendered, and counting again here would record every view twice. | You have to log in to add a translation. | Details | |
Original untranslated
<strong>It is refused unless the site defers counting</strong> — that is, unless it has a page cache and has turned the AJAX counting path on. Otherwise the view has already been counted while the page rendered, and counting again here would record every view twice.
CommentFound in description paragraph. You have to log in to edit this translation. |
|||
| What the core field cannot do is write, which is what this route is for: it counts a view, and it exists for sites serving cached pages, where the view has to be reported after the page is delivered. It takes the same <code>wp_postviews_nonce</code> the counting script is given, as a <code>nonce</code> parameter. | You have to log in to add a translation. | Details | |
Original untranslated
What the core field cannot do is write, which is what this route is for: it counts a view, and it exists for sites serving cached pages, where the view has to be reported after the page is delivered. It takes the same <code>wp_postviews_nonce</code> the counting script is given, as a <code>nonce</code> parameter.
CommentFound in description paragraph. You have to log in to edit this translation. |
|||
| <strong>Reading a count needs no route of its own.</strong> The count is already published as a read-only <code>views</code> field on the core post resource, so <code>/wp-json/wp/v2/posts/<id></code> answers with the post and its count together, and a list of posts carries every count in one response. | You have to log in to add a translation. | Details | |
Original untranslated
<strong>Reading a count needs no route of its own.</strong> The count is already published as a read-only <code>views</code> field on the core post resource, so <code>/wp-json/wp/v2/posts/<id></code> answers with the post and its count together, and a list of posts carries every count in one response.
CommentFound in description paragraph. You have to log in to edit this translation. |
|||
| The command reads and never writes. No screen in this plugin edits a view count, so the command does not offer one either — <code>wp post meta update <id> views <n></code> is still there for whoever genuinely needs it, and says plainly that it is reaching past the plugin. | You have to log in to add a translation. | Details | |
Original untranslated
The command reads and never writes. No screen in this plugin edits a view count, so the command does not offer one either — <code>wp post meta update <id> views <n></code> is still there for whoever genuinely needs it, and says plainly that it is reaching past the plugin.
CommentFound in description paragraph. You have to log in to edit this translation. |
|||
| <strong>The shortcode still works and is not going anywhere.</strong> <code>[views]</code> and <code>[views id="1"]</code> 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. | You have to log in to add a translation. | Details | |
Original untranslated
<strong>The shortcode still works and is not going anywhere.</strong> <code>[views]</code> and <code>[views id="1"]</code> 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.
CommentFound in description paragraph. You have to log in to edit this translation. |
|||
Export as
Comment
Short description.