0
votes
1answer
25 views

sort by name (slug) custom post type

What's wrong in this query ? the sortby=name doesn't change anything. $the_query = 'posts_per_page=-1&sortby=name&order=ASC&post_type=mycustom&custom_cat=mycat'; // query is made ...
0
votes
0answers
57 views

Ordering posts by custom taxonomy in admin area

EDIT @kaiser - this question is slightly different to the answer you posted in that I am talking about sorting by clicking the column title rather than adding a dropdown to filter by taxonomy term ...
2
votes
0answers
79 views

Column sorting with emtpy meta values

I am trying to sort my custom post type columns in the admin area. There's two ways I found to do this: At first this was my way to do it, however I got some strange behaviours. If a meta value is ...
1
vote
1answer
135 views

Alphabetical sorting of custom post type - one letter per page

Basically what I am looking for is a way to sort custom post type in alphabetical order and separate each letter, so you have one letter per page. See illustration. Hopefully there is a plugin or ...
0
votes
1answer
46 views

How do I sort post listing by child post count?

I have two custom post types called questions and answers. The questions list includes a custom column which displays a count of the answers for each question. I need to be able to sort the listing ...
0
votes
2answers
105 views

Test if a Category contains certain Custom Post Types

I have several Custom Post Types and several Categories. Within my pre_get_posts hook (in functions.php), I'm changing the chronological order for very specific Custom Post Type archive pages. ...
0
votes
1answer
202 views

Sort column on meta key and meta value

In the WordPress backend I'd like to sort a custom post type column on a meta key and meta value. The meta key is called 'status'. I've got three different meta value's for the 'status' key. How can ...
1
vote
1answer
83 views

How to add new tab to admin list of posts and handle result list

The goal is to show posts with special values of custom field (post meta) in separate tab. I know how to add new tab, here is a code: add_action( 'views_edit-post', 'remove_edit_post_views' ); ...
0
votes
2answers
324 views

Default sort on admin columns with meta date hides draft posts with empty date value

I have a custom post type of 'gigs' and a metabox (using meta-box plugin ) with event start date and time saved like: 2013-11-29 20:30. If I save a draft with no time/date set then it shows up in ...
0
votes
0answers
246 views

Drag n Drop Post Order for multiple Custom Post Types

I have two custom post types (Branding Elements and Products) that I'm showing on a single page, and the client wants to be able to control the sort order of the page. What would be the best course ...
0
votes
1answer
84 views

Sortable column containing numeric values for Custom Post Type at WordPress Backend

I have custom post type named Cars. By default, it is sorted by post publishing date, which is very unusual. WordPress should have provided option to sort columns containing numeric values. Alas, ...
0
votes
2answers
402 views

Make custom post type column sortable

My site has two custom types: Auction and Lot. Lots are connected to an Auction via the post_parent field. I added an Auction column to the Lots list in the admin area. function ...
0
votes
0answers
192 views

How to order custom posts type by number of facebook likes

I have a custom post type called "quotes" and I want to order these posts by facebook likes in the category page. How can I do this? Thanks.
1
vote
2answers
115 views

Categories sorting

I'm using code below to spit out custom post types along with its categories, so Category 1 ---post 1 ---post 2 Category 2 ---post 1 ---post 2 ---post 3 etc. That works well for ...
0
votes
1answer
54 views

sort custom post type by display name

I am trying to sort my custom post type in a few different ways using a dropdown. When I try to sort it as the display_name it doesn't work. $wp_query = new WP_Query(array('orderby' => ...
1
vote
1answer
452 views

register_post_type sort order by title by default

If I add a custom post type (example code below), in the admin page for the new custom post type the posts are sorted by ID by default. Is there a way to set the default sort order to the post title ...
1
vote
2answers
789 views

Wp_query: sort by PHP variable

Here is my problem: For my articles, I use a custom post type "exhibitions" and posts for all other news. I am displaying them in one query ['post_type' = array('exhibitions','posts')]. The orderby ...
1
vote
1answer
232 views

Crafting WP_Query array, sort by date

question about wordpress WP_Query: 'post_type' => 'event_date' outputs dd/mm/yy ex: 31122012 I would like to order my frontend 'event_date' output not by latest WP post entry but by latest ...
1
vote
1answer
380 views

How do I sort a custom post type admin column using two meta keys?

I have created a custom post type along with custom columns. One of my columns displays a date range such as "12/05/2012 - 11:00 am to 12/15/2012 - 1:00 pm". This is a concatenated string using a ...
0
votes
1answer
415 views

WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)

I'm trying to write a new "related posts" widget (for the single post view) for my custom post type, filtering by custom taxonomy terms that the related posts should have in common with the current ...
0
votes
1answer
117 views

How can I sort posts ascending by post title for a specific post type, but on a category archive template?

How can I sort posts ascending by post title for a specific post type, but on a category archive template? My schema involves a "video" custom post type and multiple subcategories of the ...
10
votes
5answers
2k views

Can the Next/Prev Post links be ordered by menu order or by a meta key?

I have a series of posts that are ordered by a meta_key value. They could also be arranged by menu order, if necessary. The next/prev post links (generated by next_post_link, previous_post_link, or ...
0
votes
1answer
443 views

Sorting custom post types in edit.php : Post disappear

I've got a few custom post types with different taxonomies and I have a function that adds certain categories to post list view in edit.php admin screen. Everything good there. I've also added a ...
1
vote
1answer
155 views

Custom-post-type-archive: posts sorted/filtered by year?

I have a custom-post-type wr_event whose posts are sorted by meta_key "event_date". Therefore I have this handy function … function get_event_list( $latest = true, $order = 'ASC' ) { echo ...
3
votes
2answers
2k views

Custom Post Type, WP_Query and 'orderby'

I do have a custom post type with the following setup: $supports = array( 'title' , 'editor' , 'thumbnail' , 'revisions' , 'page-attributes' ); $args = array( 'hierarchical' ...
3
votes
2answers
814 views

Sort custom post type list table by display name of a user id stored as post meta value

I have a custom post type named domicile. Each post (domicile) has an owner (not the author). Owners are users with a custom role. I store the user id as a post meta value (dmb_owner) for the domicile ...
0
votes
1answer
663 views

How to sort posts in a custom post type by title in ascending order by default?

So I am using a custom post type to create a listing of businesses. Each post made, contains information about each business. The title of each post is the name of the business. When I go to the menu ...
1
vote
1answer
399 views

Sorting multiple custom post types without a meta key/value pair by sort order

At this current moment. is it possible to sort multiple custom post/page types without a meta key/value? I'm looking to just sort the posts by page attribute order: What have i done so far? I've ...
0
votes
2answers
213 views

Custom loop request based on custom field

I have many post, all categorized. So 100 post, 40 in cat=4. All those 40 post have a custom field name point with a rating in there (how many point win). Si the question How to loop through all the ...
2
votes
2answers
247 views

Sort Posts Best Practice

I have a custom post type "Properties". These properties posts are being listed out on page "Properties For Let". Each property post has various custom meta including price, and number of bedrooms. ...
4
votes
1answer
3k views

Custom sortable columns ordered by meta-value?

I have no idea why my sortable function does not sort my "events" my a custom post-meta. I have a custom-post-type named wr_event… I have my custom columns set up and my post-meta is shown in the ...
0
votes
2answers
458 views

sort post types by amount of views

I have a custom post type that I want to do a type of news feed for, but I only want to show the ones with the most views. I know I can do a query for an "archive" of my post types, but my question is ...
2
votes
0answers
1k 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 ...
4
votes
4answers
5k views

Sorting a query by custom field date

EDIT: Reworded the question for more clarity I'm trying to sort by custom meta box data, which I am converting to a date using the strtotime function, but I'm having some difficulty. My chief ...
2
votes
0answers
355 views

sort order for a custom post-type [closed]

How do I specify a sort order for a custom post-type like I can do with the pages post-type? All I have been able to find online is various plugins that do it for me, but I'd prefer not to use a ...
0
votes
1answer
265 views

What's an easy way of sorting custom post types manually?

I'm using the bbpress plugin. It has a custom post type called forums. I used to sort posts by changing its publishing date. But you can't do that with this custom post type. Any suggestions?
1
vote
1answer
896 views

Custom Post Type sorted by Title

I created a non-hierarchical custom post type and, by default, it's sorted by date published. I know I can reorder them by Title with query_posts() in the archive template: global $query_string; ...
0
votes
1answer
560 views

How can I sort the order of multiple custom field values in a custom post type?

Here's the website: KunzlerIP At the bottom of the website, you see a slider using Fancybox. Each thumbnail pops up some content from an individual custom post type post. For this custom post type, ...
5
votes
1answer
5k views

Using meta_query, how can i filter by a custom field and order by another one?

With the following code (in functions.php) my posts (of CPT event) are ordered by _end_date instead of _start_date. What's the proper solution to this as of WP 3.1.3? Of course I'd like to avoid using ...
1
vote
2answers
1k views

Sort admin area by custom Event Date field

There are several questions in here about sorting custom items in the admin section. However, I cannot find a specific answer anywhere. Here's my specific problem: I'm using MagicFields to create ...
4
votes
1answer
1k views

How to order adjacent posts (prev / next) by custom field value?

I am using the More Fields and More Types plugins to create a custom post type called product. This custom type is based on the Post type. One of the fields is named lot which is an integer ...
1
vote
1answer
2k views

sort events based on event date custom field

I'm trying to list events (custom posttype 'kurs') by event date, which are stored as custom fields ('dato'). My loop so far looks like this: <ul> <?php $loop = new WP_Query( array( ...
0
votes
1answer
1k views

Sorting the Loop by Taxonomy Value

This is a similar question to Sorting for each custom taxonomy, but I don't feel like it was clearly asked or responded to. I have a custom post type "player" and a custom taxonomy "player_details". ...
3
votes
1answer
3k views

Custom Taxonomy Template Post List with Sort Order

I have an interesting problem I am trying to solve. Here is my situations: I have create a custom post type for "events". For each event post I require custom fields to be entered for the event ...
5
votes
6answers
3k views

visually sort ordering “custom post types” for end users

Now with those custom post types and other bits of content that don't necessarily need to be organized chronologically by date, for example: the client has a 100 T-Shirts as custom post type "SHIRT" ...