The sort tag has no wiki summary.
2
votes
1answer
217 views
Sort posts by newest child while keeping hierarchy intact
I have the following hierarchy within my wordpress posts (e.g.):
-> Post 1 (pubdate: 2011-01-01)
--> Post 5 (pubdate: 2011-01-02)
---> Post 6 (pubdate: 2011-01-03)
----> Post 7 ...
3
votes
2answers
503 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
323 views
Sorting dynamic table content with jQuery
I've been trying to use numerous jQuery plugins for tabling sorting in WordPress and have had absolutely no luck. Can anyone make a suggestion for a plugin that sorts tables of dynamic content?
I'm ...
2
votes
0answers
100 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. ...
3
votes
1answer
599 views
How can I custom order the results from wp_list_categories?
I am using wp_list_categories to return (you guessed it) a list of categories within a custom taxonomy. The orderby parameter accepts sorting by ID, name, slug, count, and term_group. Is there a way ...
0
votes
2answers
498 views
Sort custom posts in archive by multiple values: date AND meta key
I have a post type and I want to sort posts in its archive according to two values:
by a meta value called "artwork_year" which contains a 4 digit number (year)
by post publish date
what the query ...
0
votes
1answer
283 views
Plugin that lets visitors Like a post (not facebook) and stores likes in custom meta?
Does anyone know of a plugin that has a like feature or thumbs up down etc which stores these likes as custom meta data? Not a facebook like.
I'm currently using WTI Likes which stores the data in a ...
0
votes
1answer
429 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 ...
3
votes
4answers
3k 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 ...
0
votes
2answers
112 views
Sorting posts by specific order
I have a custom post type and I want to be able to control the order that the posts are displayed by defining the order in an array, and then checking the posts meta_value against the array to see ...
0
votes
1answer
270 views
Category sorting via The Loop [closed]
I have this code trying to sort by a specific category. I keeps saying it has an unexpected $end on line 39. What did I do wrong in the code. I've been playing with it and reading the codex for a ...
2
votes
2answers
411 views
Fulltext search in posts sorted by relevancy
I'm building a custom search page and what I need is to sort results by relevancy (eg. occurences of a keyword)
Using MySQL docs I've built this query:
SELECT ID
FROM $wpdb->posts
WHERE MATCH ...
1
vote
1answer
334 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 ...
1
vote
2answers
261 views
Is it possible to order posts by two meta values?
Hopefully this is a reasonably straightforward question!
Is it possible to order posts, on the front-end of my WP install, by two meta values?
I have a meta key called genus and another called ...
0
votes
2answers
202 views
Ascending sort order for monthly & category view, i.e. ?m=201204, ?cat=4
I have my posts ordered ascending (from oldest to newest) because I use Wordpress as a website to accompany a book published based on the original blog. To do this I put the following code just before ...
0
votes
1answer
518 views
How to choose a sort order (for posts) per category? (ideally when creating a new category)
Assume I have a bunch of posts (articles) in two categories: "upcoming events" (cat=1) and "past events" (cat=2). When listing all posts of a specific category out of those two, category 1 shoud be ...
2
votes
1answer
126 views
Sort a custom post type array numerically
We've set up drop down lists to allow people to filter posts based on custom post types.
In order to populate the drop down list I am using:
<?php $terms = get_terms("ratios");
$count = ...
0
votes
2answers
143 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
163 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.
...
5
votes
3answers
817 views
sortable custom column in media library
trying to make a custom column sortable in the media library. Found lots of examples for posts, and users but can't get them to work on the media library page.
function wpse_hook_isv_columns() {
...
5
votes
5answers
705 views
Different post sort order within different categories
I need to give each post a unique post order for multiple Categories (per post) it is in. I can imagine a solution using custom fields whereby for each Category there is a corresponding custom field ...
1
vote
1answer
446 views
Adding meta_key via pre_get_posts causes navigation to disappear
I'm writing a custom function that allows the posts to be sorted based on a custom field. When the user submits the "sort by" form, the meta_key (as well as orderby and order) parameters by which the ...
0
votes
1answer
293 views
Native gallery sorting is ignored
On my website, I recently got a quite strange problem. I used to upload images via the nextGen Plugin. But since with this plugin google doesn't seem to index my pictures, I wanted to switch back to ...
3
votes
1answer
167 views
Sorting by tag or category
Here's the scenario:
A user clicks on a tag which takes them to a list of all those posts with that tag. There are hundreds of posts, so the user needs a way to filter these.
Here's the question:
...
1
vote
1answer
110 views
Sort posts by meta key that is serialised with other meta keys
I need price sorting, where price is a metakey that is serialisez with other metakeys and stored in wp_postmeta
I need something like this:
When user click on free (Anchor tag) it should show posts ...
2
votes
0answers
137 views
wp_list_pages sort order is different for different languages [closed]
I'm using the following code
wp_list_pages(array('exclude' => '','title_li' => '','sort_column' => 'menu_order'))
If I switch the language the sorting is different. One of the main menu ...
3
votes
1answer
559 views
Sort posts by number of matched terms
I have form where I list all terms associated with posts as check boxes, user should pick few of them, hit search and get all posts that match all chosen terms. It works great when there are posts ...
1
vote
1answer
67 views
Sort posts by most recently modified
Is there a way to list posts in the order in which they were modified?
For example;
A user posts 5 posts (#1 being the oldest and #5 being the newest), by default they would be listed with #5 being ...
2
votes
1answer
852 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
1answer
159 views
Does wp track views for posts?
I want to do a query and sort posts by views. Is this possible? I'm not even sure where to start..
1
vote
4answers
809 views
Loop through all tags & output posts in alphabetical list
I have a bunch of posts that each have multiple tags, and I'm trying to find a way to output all of them on a single page, organized under an alphabetical listing of their respective tags. E.g. if ...
0
votes
1answer
343 views
ASC and DESC separately from orderby
So I got this to sort my posts and it works great:
<div class="sort">
Sort by
<select onclick="if (this.value) { document.location = this.value; }">
<option ...
0
votes
1answer
81 views
How to list post as buch of category, and all of them
I like my homepage not to list only one category, but to list all category, group by post. Here is the request :
Cat
1
2
3
4
5
and the post will be :
post
1 (cat=2)
2(cat=2)
3(cat=1)
...
0
votes
1answer
120 views
Can't seem to do combined query AND sort?
Below is the code I'm using to query multi-day events. The problem I'm having is that I can either sort by the start date (evstart_date) OR I can do a combined query against start date and end date ...
3
votes
0answers
262 views
Plugin for sortable posts in grid [closed]
I'm looking for a plugin that will emulate this current php page:
Each flower to be a post with more info.
The dates to be sortable
Current blooming flowers to be featured in the widget sidebar ...
1
vote
1answer
654 views
How to build a directory with indexes in Wordpress
I am working on a site that is using posts as a way to manage glossary articles like the example site below. I would like to find a way to display articles alphabetically and grouped by a selected ...
1
vote
1answer
737 views
Order posts using a custom array
I have an array of post ids which I'm passing to query_posts using 'post__in'.
My question is how can I use the order from my array rather than ordering by 'date' etc?
1
vote
1answer
112 views
How to display sorted posts in the 'All Posts' page
I've been following this tutorial to build a sorting page for my posts:
http://soulsizzle.com/jquery/create-an-ajax-sorter-for-wordpress-custom-post-types/
The sorting works fine, but the new sorting ...
0
votes
1answer
137 views
Query posts alphabetically within this function
I've been given some code to tidy up and edit a bit and the client wants to organize a custom post type named "plans" alphabetically.
It's not a straight forward query and I've never come across ...
0
votes
1answer
149 views
Archive with specific keyword by category sorted by date
I need help to create a template for an archive with specific a keyword by category sorted by date. This is the code for my archive page so far: http://pastebin.com/WEjNGhJ1
My client wants every ...
0
votes
1answer
200 views
orderby ignored by wp_query
With the following code, I do not get the result set ordered by titles. No matter what values I give to 'orderby' and 'order', I get the same ordering. The parameters seem to be ignored (or ...
2
votes
2answers
923 views
Sort by custom field value
I have a page where I only want to show posts from a specific category. At the same time, I want the posts to be sorted by a custom field value in my posts:
query_posts('category_name=' . ...
2
votes
0answers
324 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 ...
5
votes
3answers
2k views
Plugin for custom sort order for categories?
I'd like to employ a sort order option in my theme to allow categories to be sorted similar to pages. Can anyone recommend a plugin that does this?
0
votes
1answer
454 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, ...
1
vote
1answer
204 views
Comments offset
I need to display comments starting from the second, omitting the first.
With posts I did it using "offset" but I can't find anything similar for comments.
Since I'm using threaded comments, must ...
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 ...
1
vote
1answer
555 views
Admin table list API?
wp-admin table lists - like post list
Is there a API or something to build table lists in wp-admin?
With table lists I mean like the list of posts for example. It has columns, sorting, paging and so ...
0
votes
1answer
542 views
How to sort posts based on the value (number) of a post's metadata?
I'm using the GD Star Rating plugin and the bbPress plugin. The first plugin do have a argument to sort posts by number of votes. But unfortunately, It doesn't work with WP_Query (and apparently the ...
3
votes
5answers
3k views
Custom order of terms for custom taxonomy in admin and website
I have a custom taxonomy registered for my custom post type. I need to make it possible for a user to specify the order in which the taxonomy terms should appear (something like menu order for pages). ...