The sort tag has no wiki summary.
0
votes
1answer
105 views
Sort by category and then date?
I'll try to be as clear as possible. My Wordpress site has multiple custom categories and posts types all which need to be displayed on the home page blogroll. But I need the first post on the ...
0
votes
1answer
58 views
Multidimensional array sort?
If i have a set of years, retrieved by the loop, for every years can be more post ID.
Like:
2008 => 3,7,8
2009 => 4,5,6
2010 => 9
the code is:
...
1
vote
1answer
962 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 ...
0
votes
1answer
235 views
query_posts and custom taxonomy posts order
i have a custom taxonomy defined for "Projects" and a page that shows all the projects. In this page there's a jquery filtering menu (isotope). Initially the page must show all the projects but ...
1
vote
1answer
45 views
Wordpress Custom post query sorting does not work
I created a custom WP query to collect products that have 3 different taxonomy values in them and sorted them by price using the following:
$my_products = new WP_Query(
array(
...
0
votes
1answer
61 views
Autosort uploads in galleries by filename
A client of mine wishes to not have to sort images uploaded into a post gallery, but instead rely on its filename for sorting (e.g. "01_sample.jpg", "02_sample.jpg"). This would save a lot of time for ...
2
votes
3answers
424 views
Sorting results from JSON-API on custom fields
Is there any way, out of the box, to sort results from the JSON-API plugin based on values in custom fields? The request is paged, so the results will need to be sorted server-side.
I have an http ...
0
votes
1answer
85 views
WP_Query posts by distance based on LAT & LNG in Database
I've got table in the WordPress database that has lat & lng stored and I'd like to add a sort feature on the results page 'Sort by Distance' that gets the locations that are closer to your ...
1
vote
1answer
374 views
Auto sort the wp-admin post list by a meta key
I am using this following code in my functions file to hide and add some custom columns to my post-edit screen in wp-admin.
I am now trying to get the post list to sort by a post meta field (last ...
0
votes
0answers
44 views
WordPress Multisite - Sort site / blog column
I use WordPress Multisite and made a plugin that adds columns with some data.
Code example
My code is based on the function:
http://wpengineer.com/2188/view-blog-id-in-wordpress-multisite/
Key ...
0
votes
1answer
113 views
how can i change WP main archives loop to sort by name or title
I've got the following code which i found somewhere else i use it for pagination.
I don't understand all of it although I've read codex.wordpress.org/Class_Reference/WP_Query several times. they ...
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 ...
6
votes
2answers
2k views
Sort admin menu items
On a related note to "Changing the Order of Admin Menu Sections?", I'm looking for a way to alphabetically sort the entries in each sub-section of WordPress's admin area.
Currently, whenever a new ...
0
votes
1answer
364 views
Order by custom field date?
I've created a category "Expire Soon" and i want to insert and sort the posts by custom field "expiration_date".
I use this code but the posts are sorted by custom field "expiration_date" but not by ...
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
188 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 ...
1
vote
1answer
93 views
Arrange and separate posts
On a particular archive page I've created, I'm listing a number of posts by post name and they're listed in alphabetical order. Is there away to have them separated even further?
As in all posts ...
0
votes
1answer
122 views
ISOTOPE - Missing/Invalid Arguement Get Terms
I am trying to use the isotope plugin for sorting on my taxonomy page and even though I don't know much about how to set it up, I tried using some advice found on here.
Wordpress and isotope ...
0
votes
1answer
173 views
Filter/Sort Post Form On Taxonomy page
I am trying to create a form on the taxonomy template that will be able to filter the posts the current user is viewing. I want to use a few drop downs and submit button to do so.
My code looks like ...
2
votes
4answers
2k 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 ...
0
votes
3answers
238 views
Sort my event calendar by date
Im currently building an event calendar on wordpres with custom post typ. Im using custom fields for date, description etc.
Now I want to sort the events by date.. So -->
january 3, 2012
january 10, ...
0
votes
1answer
52 views
How can users sort multiple pages?
I'm using the following code to display a list of properties on multiple pages. I would like to give users the option of sorting the results by custom fields (perhaps city, or property name, or ...
4
votes
1answer
152 views
How do I allow users to sort posts? [duplicate]
Possible Duplicate:
How do I sort multiples pages?
I want to allow users to sort a long list of posts (that are displayed on multiple pages) by custom fields.
Here is my form...
<form ...
0
votes
0answers
82 views
get_option( $options ) for multiple options in an array [closed]
I have created a sortable bar where with different options of orderby queries, like Random, Most Recent and others. The code looks like this:
$orderby_sort = array(
'date' => __( 'Most ...
0
votes
2answers
63 views
Filter and Search
I am working on my site which is a WordPress based site. It is a sweepstakes site well winprizesonline.com is the site which inspired me most. Now I want a dynamic search like that site on my site but ...
0
votes
0answers
14 views
How do I sort multiple pages? [duplicate]
Possible Duplicate:
How do I sort multiples pages?
I would like my users to be able to sort a list of posts with a drop-down. But I'm having problems because the results are on multiple ...
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 ...
0
votes
1answer
113 views
How do I sort multiples pages?
I want to use a dropdown to sort a list of posts in WordPress. The results will display on multiple pages. So how do I pass the query on to the second, third, fourth, etc. pages?
Here's an example of ...
1
vote
2answers
85 views
How do I sort posts with multiple pages
I am using a drop-down to sort posts by title, meta_value, etc. However, the sorting feature only works on the first page. The second page displays the default order rather than continuing the order ...
0
votes
1answer
28 views
Listing the most popular 8 city (custom fields) as used in posts
Hi there i am creating a theme for a classifieds website and want to list the top 8 popular city which mentioned as posts custom fields. That means the top 8 cities which have the most classifieds. it ...
0
votes
1answer
97 views
Natural sort / ordering wp_dropdown_categories
I'm using the following code to display an archive dropdown:
wp_dropdown_categories( 'taxonomy=week&hierarchical=1&orderby=name' );
However the format of the taxonomy is week-1, week-2 ...
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 ...
2
votes
1answer
62 views
What table is the media's sort order stored?
I see that your can sort media by a numbered order in the media gallery for a post. But what table is this order stored in? I want to use this order to also order the images the same way in my ...
0
votes
1answer
28 views
Link to most recently created category of custom taxonomy in primary navigation menu
I have a custom taxonomy called Issues (like magazine issues) with categories named after the title of each issue. I created a page called "Current Issue" and added a link to it in the main ...
0
votes
0answers
26 views
sorting links in single category by date [closed]
I would like to sort links in a single blogroll category by date. I no nothing about coding and would therefore prefer to use a small plugin or extension. Any ideas?
0
votes
1answer
24 views
list pages by custom_field?
Is there a way for me to sort these posts alphabetically according to the custom field I have defined (last_name)?
<?php
$page_id = get_the_ID();
$args = array('sort_order'=>'DESC', ...
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 ...
4
votes
1answer
47 views
How to sort terms with diacritical signs?
I have list of terms which happens to be the Polish Alphabet.
Here's how I list these terms:
<ul>
<?php
$terms = get_terms("taxonomy", array('orderby' => 'title', 'hide_empty' => ...
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 ...
0
votes
1answer
228 views
lock meta box position on post edit screen for contributors
Our website has an open system for contributors (WP User Role) to add news and calendar content to the site.
I'd like to set and lock the position of the content and meta boxes on the post edit ...
1
vote
1answer
263 views
Sort users in get_users() in custom order
<?php
$blogusers = get_users('include=5,6,2,7,12,8');
foreach ($blogusers as $user) {
...
}
?>
Right now these users will sort by first name. How do I sort this the order the numbers ...
0
votes
3answers
693 views
How can I set a default listing order on the admin page for a custom taxonomy? (without plugins)
I'm researching this problem for days without any success... What I want is very simple: to see my custom taxonomy terms sorted by ID on the admin page. I can't believe that something this simple ...
2
votes
1answer
317 views
query_posts sort in multiple directions
I'm trying to improve my post sorting by using multiple criteria, but I want specific orders for different values. For example, I have a meta_key called 'featured' that I want to move any post up to ...
0
votes
1answer
128 views
How to keep track of when a vote is cast?
I have setup a great voting system on my website, but since I want to sort the top rated posts by week, month and alltime...I now need to able able to keep track of when a vote has been cast. Could ...
-1
votes
1answer
180 views
Sort author list alphabetically
I have narrowed the code down to this:
<?php
$authors = $wpdb->get_results('SELECT DISTINCT post_author FROM '.$wpdb->posts);
if($authors):
foreach($authors as $author):
...
1
vote
1answer
898 views
Drop down+sort blog posts date added/most popular
Is it possible to have a drop down menu like youtube/demonoid that allows you to sort your index (and caterogy.php) blog posts by date/popularity/viewed)? I seen plugins for adding most popular ...
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 ...
1
vote
1answer
525 views
get_pages sort alphabetically by meta value
I operate a real estate website, and I have a list of homes we are selling. I am using a bunch of custom fields to store information about the homes. When you click on a home in the home listing page ...
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' ...
0
votes
1answer
128 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?