The tag has no usage guidance.

learn more… | top users | synonyms (1)

6
votes
3answers
247 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
25 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 ...
-1
votes
1answer
25 views

How to have Facet Search like Zillow, Trulia, Hotpads, Hotels, etc [on hold]

I am working on a real estate site and I am trying to implement a refine search form that allows users to filter/sort the search results after an initial search. I dont want to use a paid plugin ...
0
votes
0answers
17 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" ...
0
votes
1answer
26 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
24 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
16 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
13 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
66 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
29 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
13 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
73 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
45 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
64 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
22 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
24 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
12 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
40 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
20 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 ...
0
votes
1answer
70 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
16 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
56 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
92 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
53 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
49 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 ...
0
votes
0answers
28 views

Order Authors by custom field

we just relaunched our blog and one important thing was to set up a page which shows the authors, which worked. But now my chef wants me to sort them in a specific order: there are some authors who ...
0
votes
0answers
38 views

WP Group posts by year(desc) > month(desc) > date(asc)

I have a custom category template to group posts by a custom field 'event_date'. 2 things I cannot figure out, correctly: grouping by year and month, and having those in descending order, while the ...
1
vote
1answer
30 views

Filter Media by Featured on Admin

Usually we can filter images in Media > Library by: date by MIME type, and by attached/unattached files ...but I'd like to expand this to a filter by Featured images. This way, we could filter ...
0
votes
0answers
79 views

How can I move the Woocommerce Sort button to a widget in the Shop Sidebar?

How can I move the Woocommerce Sort button to a widget in the Shop Sidebar? I don't see any options to do this even within plugins, which is confusing to me. It seems a great place to have it - above ...
0
votes
0answers
44 views

Sort custom post type by multiple custom fields

I have 4 text fields in a custom post type. How can I sort the posts by this order of text fields: brand_fbn - model_fbn - year_fbn - plate_number? This is my code, which isn't working: $ins = new ...
0
votes
0answers
34 views

Help with Adding alphabetic sorting to Add Posts to Pages plugin

I have the Add Posts To Pages plugin installed and I want to add alphabetical sorting (ASC sorting) to posts before adding them into the page. I tried several sorting codes that were added before the ...
0
votes
1answer
259 views

Sort orders by custom order meta - Woocommerce Orders admin page

I'm trying to sort my Woocommerce orders by _payment_method on the 'Orders' admin screen (edit.php?post_type=shop_order). So far I am able to sort by 'Pay_by_phone', but it sorts everytime the page ...
0
votes
2answers
30 views

Make a custom column sortable by a value from a different custom post type

I've created some custom columns to display my custom post types more attractively in the admin section - the columns are mostly custom fields. Mostly, this works absolutely fine, and I can sort by ...
0
votes
0answers
37 views

sorting posts (custom_posts) in author page

I want to sort posts (taxonomies) in my authors page, i want to sort them only by there one posts an have the right to edit them. I've try ed select elements but it shows results from search.php
0
votes
0answers
43 views

How to sort search results with a specific category first

I'm using the Zoner theme for Wordpress and would like properties categorized as "featured" to be first on the search/archive page. Is there a way to run the search query twice, such that the first ...
0
votes
2answers
144 views

How to order WP_Query to group results?

I have a list of products in WooCommerce that have titles like so: Please note: The "groups" are just for myself, they are not categories etc. All products are the same type of product, just two ...
0
votes
0answers
211 views

How To Sort and Filter Admin Custom Taxonomy Columns

I have a custom post-type with associated custom-taxonomies – how can I make these custom taxonomies sortable in the custom post-types admin/list view header (similar to how dates is sortable)? ...
0
votes
1answer
47 views

display wordpress user who published a pending post of another user

I have a custom post type, when I view my posts of this type in the dashboard I see: Title Author Date Added as well as a few more I have added My question is how can I display (like the author ...
2
votes
1answer
359 views

How do I set the default admin sort order for a custom post type to a custom column?

SOLUTION AVAILABLE HERE I've set up a custom post type called clientarea, and set up several custom columns for it in the admin area - the custom columns are all custom meta fields, as you can see ...
-2
votes
1answer
43 views

How to resort my id in wordpress?

When i select id from my wordpress with command select id from wp_posts;,the output is such as following: | 1382 | | 1384 | | 1386 | | 1388 | | 1392 | | 1396 | | 1399 | | 1401 | | 1403 | | 1406 | ...
0
votes
0answers
32 views

How to keep the sort order or filter applied in prev/next navigation?

I have an online shop (apartments for rent) using Woocommerce in Flatsome theme. The viewer can sort using the Woocommerce sort by dropdown menu, and filter items using Woocommerce filter widgets. ...
1
vote
1answer
87 views

sort tags by tag ID in admin panel

I want to sort tags list by tag id in my WordPress admin panel. There is 1000s tag in admin tag list and I want to know which are the latest added tags, but there are options to sort with Name, ...
0
votes
1answer
69 views

Ascending & descending posts on same page with IF statement

I need to be able to display a list of events on 1 page. The top list would be for upcoming events and to be sorted with earliest event first and the second list would be for expired/past events and ...
1
vote
0answers
194 views

Sortable product selector

I am currently trying to find the best way to implement a 'sortable product selector' into a WordPress site. The best way to describe what I am trying to achieve is by uploading screens as an example. ...
0
votes
0answers
40 views

Update wp.media state (mainly order) of images in Add Media Modal

I have to mimic a feature that was part of Wordpress 3.5 but was removed in Wordpress 4.0. When I am seeing the files uploaded to a post in the Add Media Modal, if I chose "Uploaded to this post", I ...
0
votes
0answers
121 views

Custom field column sortable in admin post list?

I have custom field in my posts named "thumbnail_url" which contains url of image. And I wish to display that image in my post list in new column. I managed to do it with code bellow. Now, I would ...
0
votes
1answer
26 views

Sort / Filter Queries

I'm working on a website, that showcases products, and now I'm working on the query part. Basically I want to have one page, that displays a list of products as a normal query, and then on top of the ...
1
vote
1answer
125 views

Sorting and limitation with pre_get_posts

This is my third question regarding WP queries and pre_get_posts (sorry about that) but I cant give up one step before the full success :) So the story - my query is limiting front page posts to ...
0
votes
0answers
29 views

Sort custom fields in admin by last field added

I'm trying to sort custom fields in admin post by last added fields but it sorted by words and number example my add is 3 , 6 , 4 , 7 , 5 , 1 when admin post save my custom sorted by number be ...