Issue with shortcode "most viewed blog posts"
-
Dear all,
On the bottom of the page https://ledergerber-partner.ch/publikationen we to displayed the most viewed blog posts of three different categories. Therefore we used the following shortcode:
‘[display-posts category="unternehmensstrategie-innovation" posts_per_page="10" include_date="false" order="DESC" orderby="views" display-posts wrapper="ol"]‘
But it the order don’t align with the stats. It isn’t the order of views “view of all times” nor “views last 12 months” “nor “views of last 30 days” nor “last 7 days” nor “last 1 day”.
-> How can we get it ordered by the views of the “of all times” or “last 12 months” or …?
-> How can we bring the links to “open new tab”?
Thanks,
RaphaelThe blog I need help with is: (visible only to logged in users)
-
-
Have you read this document on the stats and how they are counted?
If you still have your question after reading it, add the tag modlook to your post here and a staffer will respond to your query.
-
Hi,
Thanks for that. Yes, I read it.
But we still don’t understand how we get it ordered by the views of the “of all times” or “last 12 months” or …? And how can we bring the links to “open new tab”?
Thanks in advance for your very appreciated support.
Best regards,
Raphael -
Hi @raphaelledergerber, can you let me know where you found the orderby views syntax? It’s not here:
https://en.support.wordpress.com/display-posts-shortcode/or here:
https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters -
Hi @supernovia,
I seached with Google and found a page I don’t remember with this solution.
What’s the right solution for our need?
Best regards,
Raphael -
@raphaelledergerber I don’t believe we have an order by views here at all. Can you link me to the page you found in Google?
-
Unfortunately I can’t find out which page we found in Google.
What is the solution for our need?
-
@raphaelledergerber you may be able to find a plugin that does that. If you could look in your search history to see which site recommended that filter, they may also recommend a plugin.
Also, I noticed you have a business plan, and because of its ability to have plugins and what not it’s a bit different than most other sites in the forums. You’d be welcome to get live chat support at http://wordpress.com/help/contact .
In the meantime, I’ll file a feature request to have this supported here, too.
- The topic ‘Issue with shortcode "most viewed blog posts"’ is closed to new replies.