Hello, I want to order by the counter plugin my posts (custom post types), and I don’t find how to do it.
In my loop I do this:
$loop = new WP_Query(
array(
'post_type' => 'e',
'posts_per_page' => 12,
'paged' => $paged,
'tax_query' => array(
array(
'taxonomy' => 'c',
'field' => 'slug', // term_id, slug
'terms' => $c
),
)
)
);
Where e
is the custom post type slug and $c
is the category.
How do I join the two tables and be able to order it by the visit counter?
Thanks in advance!
]]>This posts list /wp-admin/edit.php
I want to change “Views” Text to another word column, and add text to numbers in the column.
]]>Is there any way to show the “views” on the front end so that users can view the counter as well?
I tried looking for “views” in post meta but couldn’t find the field. How is “views” expressed using PHP?
]]>