Is there a way to output posts based on view counts? I see that orderby offers “date, modified, rand, comment_count, menu_order, ID, author, title, name, type, meta_value, meta_value_num, post__in” – but I would like to output / orderby posts based on how many times the post has been viewed.
Possible?
BTW: Thanks for this perfect plugin!
Cheers, Eric
]]>We have made many attempts writing queries in the “ORDERBY” field, even with very simple queries, and we always get an SQL error: “Pods Embed Error: ORDER BY contains SQL that is not allowed.”
Here are some of the queries we have used for testing, even though it’s not what we want, we have simply tried to order them by the post creation date with different syntax tryouts:
t.post_date DESC
t.date DESC
wp_posts.post_date DESC
post_date DESC
t.fecha DESC
wp_posts.fecha DESC
fecha DESC ...
We have even tried ordering simply by descending ID, but it also gives the same error:
t.ID DESC
ID DESC
id DESC
etc.
We have also tried inserting a shortcode, but we get the same error:
[pods name="meetup" template="Listing grid meetup" limit="20" orderby="fecha DESC" pagination="true"]
[pods name="meetup" template="Listing grid meetup" limit="20" orderby="t.ID DESC" pagination="true"]
[pods name="meetup" template="Listing grid meetup" limit="20" orderby="t.post_date DESC" pagination="true"]
Could you please give us a hint with the query? Thank you.
]]>$query->set( 'orderby', 'modified' );
I tried… but I just can’t find the right file. I posted in the theme’s help forum, but got no response. It’s “Chaplin” if it helps. Is there a telltale marker I should search the theme files for? Thank you.
]]>Cashback has already been added to every product on the site.
https://ibb.co/cTqFZ9X
https://ibb.co/hmFVp17
maybe I need to buy a premium plugin from you, tell me then how to configure it. (other pages are already preloaded)
https://parovozchips.com/sitemap_index.xml
Thank you for this great plugin which is indeed a kind of heroic act.
Because I have some special needs (f.e. filtering footnotes, picture numbers, navigating elements and so on in the excerpt and singular/plural for no. of views) i made a custom version of a “most viewed” page for day, week, month and all.
For that I used your code to implement accordingly wp custom fields.
Here are excerpts of my code:
...
$args = array(
'meta_key' => $feld,
'orderby' => 'meta_value_num',
'order' => 'DESC',
'ignore_sticky_posts' => '1',
'posts_per_page' => $zahl
...
while($last_loop->have_posts() && $counter <= $zahl ) : $last_loop->the_post();
$ID = $last_loop->post->ID;
$thumb = getThumb($last_loop->post->ID);
$url = get_permalink($last_loop->post->ID );
$text_title = get_the_title( $last_loop->post->ID );
$excerpt = clearTeaser(get_the_excerpt($last_loop->post->ID));
$views = wpp_get_views($last_loop->post->ID, $mode, true);
...
endwhile;
$feld is f.e. ‘views_monthly’, $zahl is f.e. ’50’, $mode is f.e. ‘monthly’
Everything seemed to work fine. i also added a shortcode that works. But there are some small issues in detail:
...
$args = array(
'meta_key' => $feld,
'orderby' => [
'meta_value_num' => 'DESC',
'XXX' => 'DESC'],
'ignore_sticky_posts' => '1',
'posts_per_page' => $zahl
...
Happy 2024
The order of docs in our TOC doesn’t match with the category archive.
https://share.wppopupmaker.com/Jru5lknW
I’ve already set Layout > Documentation Page > Order By:
Is there another setting I’m missing for the TOC order? If not, do you have a hook to force that order to match?
Thanks!
]]>