get_terms orderby name as numbers

I have a custom taxonomy filled with terms such as ‘volume 1’, ‘volume 2’, ‘issue 1’, ‘issue 2’, ‘issue 10’ and get_terms orderby name returns list as: issue 1, issue 10, issue 2 though I need it to be issue 1, issue 2, issue 10 I tried searching wp.stackexchange and using my google-fu to no … Read more

Orderby Post Views

I want to make a filter list for my posts (in homepage, search page and archive page) Here is an example of what i’m looking for Sort by: – Date (/?orderby=date) – Random (/?orderby=rand) – Views (here i need an orderby=views or something like that) I’m counting and viewing post views by using this code: … Read more

Sort in WP_Query(), not filter? Is it possible?

I want to query and SORT in WP_Query(). But whatever I do, it only prints posts with meta_key set up. But I want all the results and just sort them. This is my query: $query = new WP_Query(array( ‘post_type’ => ‘my_post_type’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1, ‘meta_key’ => ‘post_views_count’, ‘orderby’ => ‘meta_value_num’, ‘order’ => … Read more

Woocommerce custom loop to show all the products [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 5 years ago. Improve this question I’m currently working on an ecommerce website and I met an problem. My client want a page e-boutique with all the … Read more

Sorting by tag or category

Here’s the scenario: A user clicks on a tag which takes them to a list of all those posts with that tag. There are hundreds of posts, so the user needs a way to filter these. Here’s the question: How would you build a drop down that a user can select to filter by category … Read more