Max Human
Forum Replies Created
-
Forum: Plugins
In reply to: uLogin: Было все ОК, и тут те на – Warning: file get contentsGood evening.
ULogin set a few days ago – all worked correctly. Tonight, it was to produce an error:
Warning: file_get_contents(https://ulogin.ru/token.php?token=73fe72608b57f79889e4e5f3ff3c99e0&host=mysite.ru) [function.file-get-contents]: failed to open stream: HTTP request failed! in /home/allffa/mysite.ru/wp-content/plugins/ulogin/ulogin.php on line 78
Where to go? That right? Thank you!
Hector, show you how to properly
use wpp_get_views($post->ID)
, the printf function. Here is an example Number of comments:<?php printf( _n( '', '<span>%1$s</span>', get_comments_number(), 'twentyeleven' ) , number_format_i18n( get_comments_number() ) ); ?>
Thanks, this is what we need!
—————————–
Waiting in the near plugins updates, the ability to add to wordpress-popular-posts.php in html wrapper, the functions of$posttag
and$postcategory
Thank you very much for your support!
When I need to display on the website a list of popular posts – I use the widget. This list shows the 5 posts all sorted according to specific criteria. In the stream of shows: thumbnail image, the title, the first 300 characters, Number of comments, views Number, date of publication.
Displaying the number of views provides the
$pageviews
, in the file: wordpress-popular-posts.php If I understand correctly, the value for the$pageviews
where it is stored.
The idea is that it would be possible to display the value in any other place on the site – in the category page that displays the list of posts.Why do it? When I display the main page list of popular recordings, its HTML wrapper is the same as for the list, the category page. But the difference is that in terms of a list of standard conditions means WordPress and they is not designed for counting the number of hits.
In order to HTML wrapper popular posts was the same on the home page and a list of posts in the categories on the search page, the page tag …
Simply put, how to insert the value of this variable (counter) on category pages, search pages, tag pages?
Hope to understand, – and I do not know English …:))And yet, on the display of views (hosts) … It should be possible to deduce the value to other pages, even if in these pages do not use the plugin.
Explain why – if I put a list of popular posts on the main page, and where it is displayed in the block views, such as 100. Then that would bring the number of views of the same date, the list of posts in the categories – I need to create a separate counter. I think it will be difficult to synchronize the counters that have all had the same views…
Something like this ??
I hope that the ability to display Categories and Tags appear in the nearest update. Since this is a very logical and often claimed, when dealing with the post.
Thank, Héctor