The sort tag has no wiki summary.
2
votes
1answer
295 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
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
114 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) {
...
1
vote
2answers
4k 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
212 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
355 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
1answer
427 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
2answers
731 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
1k 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 ...
1
vote
3answers
857 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 ...
0
votes
1answer
486 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 ...
1
vote
2answers
849 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 ...
0
votes
0answers
232 views
Sorting loop by 'orderby' 'modified' not working?
I'm trying to build a photostream that sorts the loop by the modified date of a post type. The goal being that as a post is updated with new attachments, it gets pushed to the front of the loop. My ...
0
votes
2answers
706 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 ...
0
votes
3answers
492 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 ...
1
vote
1answer
402 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 ...
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 ...
0
votes
2answers
609 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 ...
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 ...
0
votes
1answer
162 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
939 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
2answers
1k views
Archive sorting functions by custom fields (front-end)
I want to give the users the ability to sort the posts in the archive by some custom fields that I pre-define.
The end result would be en a tabbed container, and the user will click on the relevant ...
0
votes
1answer
417 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)
...
1
vote
1answer
854 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 ...
1
vote
0answers
400 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.
3
votes
1answer
1k views
Sortable admin columns, when data isn't coming from post_meta
I have a custom post type that uses a custom taxonomy. I'm imposing a limit of a single term to each post (using a custom meta box drop down on the edit post screen for the CPT). The term for the ...
1
vote
1answer
2k 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)?
0
votes
1answer
560 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
730 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 = ...
1
vote
1answer
326 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 ...
3
votes
1answer
867 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
977 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". ...
0
votes
2answers
2k views
Sorting problem with 'query_posts' funcion in wordpress. Sort by custom field not working
0 down vote favorite
Hi, I am working with wordpress where i have a event listing system. There is a custom field in my post called starting_time which is unix timestamp. Now i want to short all ...
0
votes
1answer
2k views
Sorting/Filter posts from front-end in Wordpress blog
Here is the design I have mocked up
http://enormo.us/clients/ischool/
The question is, how can I create a filtering system where the main blog area acts as the central feed and it combines the ...
1
vote
1answer
777 views
Sort list of Wordpress Page under tag when is_tag() called
I have a site that I'm having so much trouble to try to sort the order of a list of Pages based on their tag.
I've build this site over a year ago, with wordpress at the time there isn't any tag ...
1
vote
1answer
132 views
Server-side sorting of posts
I have seen on some websites that you can sort posts server-side by passing in some queries like so: domain.com/?sort=date or domain.com/?sort=name
How would I do this with WordPress posts on a page?
...
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 ...
2
votes
1answer
476 views
blog posts sorting doesnt work while using get_query_var
I'm trying to show the latest posts using the get_query_var function. The function filters the posts according to their category.
When I'm displaying the posts on the page they appear unsorted ...
0
votes
4answers
368 views
Displaying Posts Depending on Number of Comments and Latest Comments?
I would like to be able to display a list of posts on a page depending on when and how many comments they've got.
Something similar to how it is here on stackexchange.
To be more specific, I want:
...
0
votes
3answers
3k views
Sorting WordPress Posts via Custom Field Values?
Ok, so I'm using the WPAlchemy class to create custom field write panels in the write post page, and so far everything has gone great... However, there's one issue I can't seem to figure out. I'm ...