The tag has no wiki summary.

learn more… | top users | synonyms (1)

3
votes
2answers
767 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
519 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
181 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
1k 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
684 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
483 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
639 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 ...
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 ...
0
votes
2answers
185 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 ...
1
vote
1answer
396 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
566 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
350 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
1k 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
178 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
210 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
243 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
2k 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
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 ...
2
votes
1answer
945 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 ...
3
votes
1answer
301 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
130 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
223 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
631 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
97 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 ...
4
votes
1answer
2k 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
385 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
1k 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
498 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
86 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
138 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
389 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
934 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
139 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
227 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
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
346 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
1k 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
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 ...
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?
0
votes
1answer
553 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
232 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 ...
1
vote
1answer
743 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
514 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'], ...
3
votes
2answers
3k 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
223 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
8k 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
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?
3
votes
2answers
497 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 ...
0
votes
2answers
873 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 ...