The tag has no usage guidance.

learn more… | top users | synonyms (1)

0
votes
0answers
13 views

How to select N number of products and display it randomly in Woocommerce

I have a woocommerce setup with about 10,000 products, i would like to display all the latest products on the home page so that i can have N number of latest products from each PRODUC TAG displayed in ...
-3
votes
0answers
17 views

How to group posts by date?

I want to display posts by date on the homepage. Example: June 21, 2016 Post 1 Post 2 Post 3 Post 4 Post 5 Post 6 more June 20, 2016 Post 1 Post 2 Post 3 Post 4 Post 5 Post 6 more
0
votes
1answer
33 views

Grouping and paging CPT events by month with custom field date

$start_date = date( 'ym01' ); $end_date = date( 'ymt' ); $meta_query = array( 'key' => 'event_date', 'value' => array( $start_date, $end_date ), 'compare' => 'BETWEEN',...
3
votes
2answers
102 views

Sort posts by tags in category pages

I would like to sort posts by tags in category and archive pages. (Unfortunately there isn’t an orderby parameter for tags. That would make things so easy!) So a category page would be like this: ...
2
votes
0answers
32 views

Number of pages - multiple (custom) post types

My archive query contains a custom posts_per_page, order, orderby, post_type and paged (via wp-pageNavi). array ( 'order' => 'DESC', 'orderby' => 'title', 'paged' => 1, '...
2
votes
1answer
53 views

Advanced orderby with multiple meta_query

I am on latest version of WordPress. I have scoured the codex concerning wp_query and meta_query. I also read through these: https://make.wordpress.org/core/2015/03/30/query-improvements-in-wp-4-2-...
0
votes
0answers
52 views

Sorting Grids with Essential Grid and Events Manger

I am using Events Manager to control my Events, but Essential Grids to display previews of these events in various places throughout my site. An example of this is http://staging-dbmax....
1
vote
1answer
31 views

How to show the entries in a custom taxonomy by author?

I have a website that I'm building for people to write their own books. I have a custom taxonomy for this, labeled books. I now need a link or pull-down that contains all of the authors on the site, ...
6
votes
3answers
66 views

Random sort within an already sorted query

I have a working query which returns a set of custom posts which are ordered by their package ID (ASC). For a query with 9 results this may return for example: 4 posts (Post ID's 1,2,3,4) with ...
0
votes
1answer
48 views

Sorting custom post type columns with external data and without meta values

I created a custom post type 'Book', for which data is stored in an external database (like ISBN, author etc). The WordPress database contains the ISBN per custom post, which connects the correct data ...
0
votes
2answers
42 views

WP Query and date format

I've been using a CPT named "session" that has some date fields. Those date fields are stored via the CMB2 plugin with something like this : $cmb->add_field( array( 'name' => __('Begin :', '...
0
votes
1answer
29 views

Merge arrays and order set and subset as one

I have two arrays that filter and order posts by two different custom keys. What I need to do is to merge the arrays and order them by their own custom keys, to not have first a list of the array a ...
0
votes
0answers
42 views

Sort search results by meta_key value

I really need help with this. Below is a code of my template for search results page search.php and everything works just fine. Now, the website is about public events so it's very important that ...
0
votes
0answers
47 views

Wordpress admin sort by custom column

Modify default columns function my_page_columns($columns) { $columns = array( 'cb' => '<input type="checkbox" />', 'thumbnail' => 'Thumbnail', 'sort' ...
0
votes
1answer
28 views

Custom Post type sort order not working in the admin area

I have a WordPress site that has a couple of custom post types. None of these custom post types allow me to sort the posts alphabetically or by date in the admin area. I have looked all over online ...
0
votes
1answer
45 views

Advanced Custom Fields: Sorting custom columns with custom fields sorts only by date

I have a custom post type – “members”. With help of Advanced Custom Fields(AFC) I’ve created a Field Group with 5 fields and assigned that group to my “members” post type. I followed this article to ...
1
vote
1answer
58 views

Use pre_get_posts to sort meta_key by an array of values

Scenario: I have a bunch of resellers loaded under a "reseller" post type. Each of these resellers have a "rating" which is a string value like Gold, Bronze, Silver - this indicates their status as a ...
0
votes
0answers
29 views

+ 0 in ORDER BY

My $args: Array ( [post_type] => course [showposts] => 99999 [orderby] => meta_value_num [order] => DESC [meta_query] => Array ( ...
0
votes
1answer
46 views

Removing custom sort order from admin page listing

For the background to my question: On my page listing, I've got a set of pages that are countries and the child pages of those are categorised into 'Types'. So I've got a page structure like this: ...
0
votes
0answers
22 views

ordering alphanumeric terms by numeric value

I have a list of terms under a custom taxonomy which all terms in there have combined alphabetic/numeric names (sheet 38 for example, which actually includes a a space as well). I want to order them ...
0
votes
2answers
29 views

ORDER BY custom field value

Based on example here https://make.wordpress.org/core/2015/03/30/query-improvements-in-wp-4-2-orderby-and-meta_query/ I'd like to modify the query $q = new WP_Query( array( 'meta_query' => array( ...
0
votes
1answer
59 views

ORDER BY custom field value out of where clause

Based on example here https://make.wordpress.org/core/2015/03/30/query-improvements-in-wp-4-2-orderby-and-meta_query/ I'd like to modify the query $q = new WP_Query( array( 'meta_query' => array(...
0
votes
0answers
31 views

Complex sorting of custom-post-types

Custom post: people, custom taxonomy: department, each department has (optionally) a custom field (boolean): team leader Desired output; Heading: Department A Team Leader Department A People in ...
0
votes
1answer
75 views

Sort results without WP_QUERY?

I am new to coding a WP_QUERY and I tried a few things with it but it doesn't seem to work. Right now (you can see the page here: http://boomerang.mannydesigns.co/artistes/parcourir/musique/ ) I need ...
8
votes
3answers
351 views

Ignoring initial articles (like 'a', 'an' or 'the') when sorting queries?

I'm currently trying to output a list of music titles and would like to have the sorting ignore (but still display) the initial article of the title. For example if I had a list of bands it will be ...
1
vote
1answer
99 views

Custom post type 'orderby' => 'meta_value' not working

I have a custom post type called Member I have added code to my functions.php file to add a couple of custom column headings (which is working) for First and Last name and Member Type but I can't get ...
0
votes
0answers
285 views

Woocommerce sort by price with [products] shortcode

I have been looking all over the internet for a solution past few hours, there's this problem that I can't sort products by price (low to high) using this shortcode: [products orderby="price" order="...
0
votes
1answer
47 views

Sort by meta value num, but ignore zero value

I have custom-post-type 'company' and taxonomy 'services' fot this CPT. I have created meta-field 'service_XXXX_price' (where XXXX is service id) for companies and fill this field with number. If this ...
1
vote
1answer
61 views

Sort by meta key on archive page

I am trying to sort an archive page using a meta key value (which happens to be a Unix timestamp). Currently I have the posts listed on the page by their WordPress creation date. I want to use the ...
0
votes
0answers
40 views

After sorting product with default sorting why redirecting on shop page instead of category page

I have website with woo commerce product's. I have 3 category's for product's Online Diet plan , Health Consultation , Corporate Wellness all of each category have more that 20 product's. On category ...
0
votes
0answers
50 views

WooCommerce - order products by default or a-z

I have changed the Breadcrumb Bar in breadcrumb.php and added 2 arrows "> next" and "< prev" to the right top, and now we are able to browse the products. To do this, I get the category of the ...
1
vote
3answers
108 views

Sorting posts according to the term they belong to

I have a taxonomy called portfolio_cat with its categories.So now I need to create a slider with that categories as a title and their post items. How I can do that? What loop do I need to have so that ...
-2
votes
1answer
43 views

Sort wordpress posts by facebook likes [closed]

I found a theme that I really like: http://pluto.pinsupreme.com/masonry-compact-facebook As you can see every post has Facebook likes displayed in the exerpt. I would like to know if it would be ...
0
votes
0answers
24 views

Admin list: sort by default by custom column

I created a custom column like this: if( (isset($_GET['post_type'])) AND ($_GET['post_type']=="sales") ) { function inventory_column($columns) { ...
2
votes
2answers
239 views

Ordering Posts List By Taxonomy Terms?

I am wondering how to write code to order a list of posts by their terms from custom taxonomies? Here is what I have so far: I have a page that lists all the posts in a Custom Post Type, on one ...
0
votes
0answers
18 views

Creating a sortable table of posts by taxonomies? [duplicate]

I have posts under the Category "Show Reviews". Each post is one review on a Show title. I have made custom taxonomies called Genre, Director, Studio, Year. I would like to create a table on ...
0
votes
0answers
54 views

Custom Post Type and Taxonomies Structures

I am slightly hesitant in opening this topic because I have read through so many topics regarding this both on and off Stack Exchange. I will try and make it your guys worthwhile because I still have ...
1
vote
1answer
116 views

Front End Sorting Questions

Please bare with me as I am self taught and trying to learn as much as possible. I am going to try and provide as much information as possible that I have learned from researching this problem. My ...
0
votes
1answer
52 views

Sort WP_Query with numeric custom field

I have added a numeric field (called 'video_order') to a certain post type, via ACF. I would like to sort the list of posts, by that numeric field. I have made sure to go through the posts and give ...
0
votes
1answer
71 views

Sorting for custom column in WordPress admin post table

I know this question has likely been asked many times, but I've tried so many supposed solutions to this issue and so far nothing has seem to have worked. I'm using the Advanced Custom Fields plugin ...
0
votes
0answers
13 views

Saving sorted CPT with CF

I'm using WP-types to create custom post types and custom fields. Using CPT and CF, I've created photos gallery assigned to Posts. When I'm sorting them by "Wgraj zdjecie" and click save all, it ...
0
votes
1answer
96 views

How can I sort get_users() by any value (last_name, user defined fields and more)

I want to sort the result of get_users() by last name, first name, user defined fields or whatever. How can I achieve this while still using get_users()?
0
votes
1answer
23 views

Sorting posts by meta values: 2 different orders

I have a meta value for a custom post type called workshop which is the start_time of the workshop as a UNIX timestamp. Right now I'm able to sort the posts ascending or descending with $query->...
0
votes
1answer
165 views

Order by modified date working in POSTS but not PAGES

I found the following code at bytefreaks.net. It adds a sort-able column to edit.php, but the column appears only on Posts and not on Pages (...?post_type=page) bytefreaks suggested putting it in ...
0
votes
0answers
21 views

Sort products by products ID

is there a way to define an url like this one: http://www.mydomainname.com/product ID 1234 and product ID 5678 If yes which should be the correct syntax. Thanks for the help Roc
1
vote
1answer
109 views

Order a custom post type admin screen by a second custom post type title

I have two custom post types: Products and Brands. The Product slug is 'eproduct'. The Brand slug is 'brand-listing'. On the Product admin page, I have added a custom column that lists the Brand ...
0
votes
1answer
215 views

Sort search results by Custom Field

I have a custom post type called "data-base" which always need to be sorted by a custom field called "title_stand". I have managed to apply the proper sorting to the archive-data-base.php file, ...
1
vote
0answers
74 views

Frontend sorting

Here is what I am trying to accomplish: Which partly works already, I can sort with 2 dropdowns and have a pagination. I have to merge both dropdowns into one, and add "posts per page" without ...
0
votes
0answers
86 views

Sorting/Pagination/Posts per Page

I can't seem to find a fitting plugin, or multiple plugins that support the following things: Sorting dropdown Pagination list Posts per page dropdown Everything necessary to sort my posts inside ...