Tagged Questions
1
vote
2answers
28 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
30 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' => ...
0
votes
1answer
62 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
212 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
162 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
186 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
149 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
58 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 ...
5
votes
2answers
421 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
227 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 ...
0
votes
0answers
86 views
Custom Post Type post per page sort and sortby [closed]
I´d like to:
1. 'orderby' => 'rand' and 'order' => 'title' (doesn´t work for me yet)
2. show unlimited posts_per_page (at the moment just 10 posts will be displayed)
The page should looks ...
1
vote
1answer
114 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
874 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
522 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
437 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
340 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
144 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
169 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.
...
2
votes
1answer
985 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
266 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
817 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 ...
3
votes
4answers
4k 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
327 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
218 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?
0
votes
1answer
460 views
Custom Post Type sorted by Title
I created a not-hierarchical custom post type and, as 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
457 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, ...
4
votes
1answer
2k 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
866 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 ...
3
votes
1answer
896 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
990 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
2k 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
5answers
2k 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 by chronologically by date, for
example: the client has a 100 T-Shirts as custom post type ...