The tag has no wiki summary.

learn more… | top users | synonyms (1)

3
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 ...
0
votes
1answer
155 views

How to order posts by number of Vimeo Likes

I have number of posts that contain embeded video from Vimeo, I can get vimeo likes and display them inside the post using vimeo API but how can I order those posts by number of Vimeo likes?
0
votes
3answers
311 views

Sort my event calendar by date

I'm currently building an event calendar on WordPress with a custom post type. I'm using custom fields for date, description, etc. Now I want to sort the events by date.. So --> January 3, 2012 ...
0
votes
1answer
210 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 ...
1
vote
1answer
1k views

Sort query_posts for Parent Pages to menue order or the count?

thanks to a member here i display my Parent Pages in a 2 column grid with title and excerpt. But for some reason i can't figure out how to sort all 5 Pages by the menu order for example or the order ...
5
votes
3answers
1k 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() { ...
0
votes
1answer
160 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
296 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
0answers
351 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 ...
1
vote
1answer
683 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
1k 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 ...
2
votes
1answer
237 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 ...
0
votes
1answer
202 views

Sorting tags by name

I'm displaying a lit of tags when they have a description. I'd like to sort them by name instead of by post quantity. Is there a way to do this? <?php $tags = get_tags(); if ($tags) { ...
2
votes
2answers
7k views

Setting Custom Sort Order of Posts within a Category

I've got this category setup that includes several posts. By design it's not a blog, but a staff listing. Currently all of the staff members have their own posts with the category. I'd like to be able ...
0
votes
1answer
259 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?
3
votes
2answers
473 views

Sort X categories by last update and show image

I want to display X categories, and sort them by last update. I also want to grab the image of the latest post with the category. <img src="<?php echo ...
1
vote
1answer
725 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; ...
1
vote
1answer
870 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?
0
votes
2answers
841 views

Sort posts after filtering them through multiple taxonomies

I'm using scribu's Query Multiple Taxonomies to filter posts through multiple taxonomies (which works great!). However, I'd like to allow people to perform further sorting on the results based on ...
1
vote
1answer
2k views

orderby field - list of available options?

I would like to sort items by the "order" field of the page attributes (see pic). I've come across all kinds of "custom tag" solutions but not one listing all of the already available fields you ...
6
votes
1answer
8k views

How to query_posts using meta_query to orderby meta_key AND have a secondary sort by date?

I've been troubleshooting an issue over the past few days and keep going in circles. Could really use a fresh pair of eyes to help me answer this question... So I'm working with a wordpress site ...
0
votes
1answer
538 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
3answers
1k views

Control attachments menu order with jQuery Sortable

I've managed create a metabox that lets me upload and then fetch the images and then also been able to add jquery ui sortable to be able to sort the images, however I've no idea how to add actual ...
2
votes
1answer
462 views

Wordpress: Keep order of query_posts list of post ID's using post__in

I need to request a certain list of posts in the order I want. I'm getting the posts using: query_posts('category_name'=>'cases', 'posts_per_page'=>5, 'post__in'=>$_SESSION['sorting'], ...
5
votes
5answers
1k 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 ...
0
votes
1answer
591 views

How can I sort my loop based on meta data, using a form?

I've created a custom post type called 'properties' with custom meta boxes of 'price' and 'rooms'. I have a custom loop-property-archive.php to display the properties. What I would love to have is a ...
3
votes
3answers
525 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
567 views

sort posts by alphabetic plugin suggestion

I am looking for plugin to sort posts by alphabetic orders. Sort: A-Z Z-A Newest Oldest and option to view per page like in stake exchange websites Per Page: 20 40 60 All if not exists, can i ...
0
votes
3answers
666 views

Sort taxonomy page alphabetically by meta rather than default post date

The user starts at a page showing posts of custom post type, "agent". Each post displayed shows a region/custom taxonomy it belongs to and links to a page that shows all posts in the region the user ...
5
votes
1answer
4k 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 ...
1
vote
1answer
1k views

How to use WP default post list tables in a plugin?

I'm developping a plugin to manage a base of users and I'd like to show them in the same type of table used in other parts of the WP admin (post lists, user lists, etc.), I'd like to have the same ...
1
vote
1answer
221 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 ...
0
votes
1answer
184 views

How to “orderby” the first array in a meta_query that uses multiply keys?

My query is currently sorting by end date. How can I make it so it will sort by the start date? $args = array ('post_type' => 'events', 'meta_query' => array( ...
0
votes
1answer
456 views

Count the posts number for every category

I'd like to count the number of posts created for every category, so: 12 Works (12 posts in works category) 36 Pictures (36 posts in pictures category) 17 Furnitures (17 posts in furnitures category) ...
4
votes
5answers
2k views

get_pages() not ordering as it should

I'm using get_pages() function to get all subpages from a page like this: $childrens = get_pages(array('child_of' => 7, 'sort_column' => 'post_date', ...
0
votes
2answers
1k views

Sort comments by karma

I'm using the plugin comments rating (thumbs up - thumbs down) on my comments template. It stores "karma" in the db column "comment_karma" in comments table. I am looking for a way to sort ...
4
votes
6answers
5k 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). ...
0
votes
1answer
1k views

How to let users choose posts order in categories?

Hi to all I'm running a wordpress based website and I need to let the users choose how to show the posts inside categories pages. I would like to have a button inside a category page that can be ...
3
votes
1answer
620 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
0answers
438 views

How do I create a sort capability by Title, Category, Author, Date?

How do I create a sort capability where User can Sort by Title, Category, Author, Date? I would like it to work almost identically to this site.
1
vote
1answer
1k views

Sorting archive pages with “pretty” URLs?

We want the users to re-order the posts on a page similar to pagination but I can't find anything anywhere! It would be great to create a link to a url similar to .../page/2/title/, title being the ...
5
votes
3answers
3k 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?
2
votes
1answer
3k views

Sort pages in loop by admin's page attributes order field?

Is it possible to sort pages in the loop using the admin's order field (under page attributes)?
4
votes
5answers
3k views

How to return results of a get_posts() in explicitly defined order

I'm trying to create a loop of explicity ordered posts, for example: <?php $args = array( 'include' => '1,3,8,4,12' ); ?> <?php get_posts( $args ); ?> The results are ...
3
votes
2answers
2k views

Sort posts alphabetically by custom field value, insert divider between different letters

i'm listing all posts of my custom post type "person" alphabetically sorted by the custom field last_name on a page. How would i insert a divider (e.g. an image of the letter) before a letter range ...
0
votes
1answer
765 views

Sort category page with custom field

This is similar to another question I asked, but I can't recognize how this query string works. I have a custom field called "category_order" and I would like to sort my category page by this order ...
1
vote
1answer
886 views

Sorting posts ordered by custom field value

I have a series of posts (using a wp-zoom theme). I would like to create a custom field called order and sort by that field. Here is part of my homepage code: <?php $z = ...
0
votes
2answers
766 views

Filter or order based on custom field

I have added a custom field to some posts called 'frontpagerank' The plan is to order the posts by this value but first I just want to filter out any that don't use a front page rank. I have achieved ...
1
vote
1answer
493 views

Sort plugins by rating

When I want to install a new Wordpress plugin, I do a search for the plugin I want, and I receive a list of results. Is there any way to sort the results by rating, or name? If not, it would be a ...