The tag has no usage guidance.

learn more… | top users | synonyms (1)

2
votes
0answers
223 views

How to sort posts by last name (2nd word) on ONE category only?

I have an "author" category that is used as a list to browse multiple posts containing author biographies. I have Smart Category Ordering installed and right now it is sorted by title ascending. ...
2
votes
0answers
2k views

query_posts with a custom post type, a meta_query and sorting by post date?

I've searched the archives and found questions similar to what I need, but haven't found exactly what I want. I've got a bunch of products that are sorted by a meta_key of country, and I'd like to be ...
1
vote
0answers
69 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 ...
1
vote
0answers
271 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. ...
1
vote
0answers
86 views

Best Practices for a Completely Customizable Homepage - without plugins

Let's say you have a homepage where you want to be able to feature 10 posts of various types (posts, pages, and Custom Post Types). You have hundreds of these posts to choose from. What would be the ...
1
vote
0answers
196 views

Sort alphabetically by custom field

I'm trying to change the sort order of a custom field in a custom post type. I want it to be be alphabetical by the 'location' name. It's sorting by location, but not keeping them in alphabetical ...
1
vote
0answers
97 views

Sort results by groups of numbers and letters

I have this code: <?php $letter=' '; query_posts( array ( 'orderby' => 'title', 'order' => 'ASC' ) ); if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <ul> ...
1
vote
0answers
261 views

Custom taxonomy/category order

My products are sort by menu_order, but I would like to sort category name too. I tried a few plugins and all doesn't works. Code, which display category name and products list: <?php ...
1
vote
0answers
136 views

Custom Sortable Meta Boxes

I've looked all over and can't seem to find what I'm looking for (probably because I don't even know the terminology for what I need to do). I need to make some custom meta boxes that are similar to ...
1
vote
0answers
194 views

wp e-commerce sort by stock

I have a site using wp e-commerce plugin and want to sort items by stock. I have been trying for hours without any luck: I don't have an option to sort by "SKU" in the administration (as I've read ...
0
votes
0answers
30 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 ...
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
44 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
0answers
28 views

+ 0 in ORDER BY

My $args: Array ( [post_type] => course [showposts] => 99999 [orderby] => meta_value_num [order] => DESC [meta_query] => Array ( ...
0
votes
0answers
20 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
0answers
29 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
0answers
220 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
0answers
34 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
43 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 ...
0
votes
0answers
23 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) { ...
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 ...
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
0answers
20 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
0
votes
0answers
75 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
33 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
45 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 ...
0
votes
0answers
128 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
64 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
43 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
0answers
52 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
52 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
0answers
258 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
0answers
44 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. ...
0
votes
0answers
60 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
131 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
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 ...
0
votes
0answers
48 views

Static front page and orderby

I have setup a Wp_Query on a page template that queries woocommerce products. When not set as the front page my orderby filtering works perfectly. However when trying to use orderby on a static front ...
0
votes
0answers
27 views

Child categories by post date

I have created a parent category called " Shows " and have 8 different programs under it. I want to display the most recent post from all categories on first block of my template page. The code I am ...
0
votes
0answers
77 views

“meta_value_num” not working when value is wrapped in html tags

I should start by saying I have little to no knowledge of PHP, nut I am responsible for managing a wordpress site for a restaurant. I have the menu items listed in order of price using the following ...
0
votes
0answers
403 views

Woocommerce: custom product attribute sorting not working (backend)

I am having a problem sorting the product attributes in the backend. I have a product attribute called "size" which has numerical and string values (36, 37, 38 .. XS, S, M, L). Because they were not ...
0
votes
0answers
17 views

how to sort post in admin column by recently

i have created custom post type my problem is: in admin column, posts are sorted by ID how can change it to date. In other words, i want to sort post by recently
0
votes
0answers
69 views

Sorting posts to make those with post thumbnail show up first

I am trying to sort post with If have post thumbnail list posts show first(i need the posts without thumbnail to show after it) by title. $args = array( 'post_type' => 'post', 'meta_key' ...
0
votes
0answers
40 views

Sorting posts alphabetical that have single digits

I have post titles that are like this: Episode 1 Episode 2 Episode 6 Episode 10 Episode 14 I try to list posts alphabetically but it ends up showing like this: Episode 1 Episode 10 Episode 14 ...
0
votes
0answers
239 views

Sorting is not working in WordPress WP_Query

I have created a page where I am sorting the post according to the views. Here is the query: <?php $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query( ...
0
votes
0answers
164 views

How to sort a WP_Query array by post_name after an array_merge();

I have an WP_Query array made up from two WP_Query() objects merged together as follows: $query1 = new WP_Query($args1); $query2 = new WP_Query($args2); $wp_query = new WP_Query(); ...
0
votes
0answers
82 views

Page 2+ of taxonomy archives does not recognise sort-order from dropdown

I'm using a custom taxonomy archive and I want the user to be able to organise it by 'latest' or 'alphabetical' along with other custom fields in a dropdown form. Seems to be working fine on the first ...
0
votes
0answers
188 views

Query category-specific, paginated posts and allow viewer to change sort order

Maybe this has already been asked here, but I can't seem to find a solution, so forgive me if this is a duplicate. I have coded a custom template to display all posts from a category with the ID 36. ...
0
votes
0answers
25 views

Post Query Glitch Causing First Post to be Out of Order

My problem is that there is a stubborn post at the top of the set of returned posts that somehow isn't sorted with the rest of them. Despite upgrading to 3.9, this issue still persists. For ...
0
votes
0answers
86 views

query_posts with sorting on a custom datestamp

I have a custom meta field that I want to use to sort with query_posts but its not ordering my posts properly since it is a datestamp (i.e. 04/21/2014) and its treating it like a normal text string. ...
0
votes
0answers
83 views

Grouping posts starting with same letter

I have a CPT called authors. Titles include first and last names. To alphabetically sort these posts by surname I use this filter: function posts_orderby_lastname ($orderby_statement) { ...