The order tag has no wiki summary.
3
votes
1answer
1k views
Is it possible to paginate posts correctly that are random ordered?
I found this problem on Wordpress Support and the topic unfortunately is now closed. I have this same issue... (read below)
We have created a site where members can recommend things like favourite ...
1
vote
1answer
708 views
Order Admin sub-menu items?
I am adding items to a CPT Admin menu using add_submenu_page which works great, but they are added to the bottom of the sub-menu after the CPT options. I want to be able to have them on top , but I ...
2
votes
2answers
193 views
Orderby = none not working
I'm trying to set 'orderby = none' to my loop but it is not working. Here's my code:
$query = new WP_Query(array('showposts'=>2, 'post__in' => array(99,4,5,2,8,55), 'orderby'=>'none'));
...
1
vote
2answers
928 views
How to Change the Categories Order in the Admin Dashboard?
The order of categories on dashboard is alphabetical. Can I change it to custom order?
0
votes
1answer
143 views
Adjust the order for returned posts
I have written a neat responsive slider for my Wordpress featured articles (feel free to use it):
<?php
$responsive = 'on' != get_option('henrik_responsive_layout') ? false : true;
...
8
votes
3answers
4k views
Adding 'menu order' column to custom post type admin screen
I want to use the menu order attribute to control ordering for a custom post type that's going to be used for a specific purpose.
It's easy enough to add this to the CPT via supports => ...
5
votes
5answers
708 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 ...
3
votes
1answer
498 views
Sort posts by popularity/page views
How can I sort posts by popularity or page views in my template file?
I guess I need to count page views first, is there any good plugin to integrate with to sort posts by views or what is the best ...
1
vote
2answers
71 views
List upcoming events, ordered by date in a custom field
I want to display a list of events with dates in upcoming order. Ex:
23 March, 2013,
30 March, 2013
Below is the query I'm using to filter out posts from my database:
query_posts(
...
1
vote
1answer
73 views
Order posts by price
I have a list of products on a page and am trying to order them by a custom field called "price". Unfortunately, $3,950,000 is coming before $349,000. I've used a couple of codes but neither one is ...
1
vote
3answers
484 views
WP_query 'orderby=none' Problem
I have another database which stores post's IDs and I want do display them using WP_query to use the WP default pagination. I'm using orderby => none to preserve the original order, but the result ...
0
votes
0answers
38 views
All in one event order by
Im using All in one event calendar. On my single event page I want to query some dates and sort them by start date. My query looks like this:
<?php $event = ...
0
votes
2answers
178 views
get_terms orderby name as numbers
I have a custom taxonomy filled with terms such as 'volume 1', 'volume 2', 'issue 1', 'issue 2', 'issue 10' and get_terms orderby name returns list as:
issue 1, issue 10, issue 2 though I need it to ...
0
votes
1answer
93 views
WP_Query post at custom position
Lets say I have a custom query which based on two custom post types:
$wp_query = new WP_Query(array(
'post_type' => array('post-type-1', 'post-type-2'),
'post_status' => ...
0
votes
1answer
523 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 ...
0
votes
1answer
224 views
Custom WP_Query breaks default behaviour of viewing right post associated with tax-term!
I have a custom-taxonomy for a custom-post-type just like categories.
I've used the standard loop in my taxonomy-event_type.php template so far …
if ( have_posts() ) : while ( have_posts() ) : ...
0
votes
2answers
204 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
833 views
Order users by custom user meta
I'm showing a list of users like so:
<ul>
<?php $directors = get_users('role=director');
foreach ($directors as $director) {
$dir_id = $director->ID;
...
0
votes
3answers
1k views
Order by first name
I'm trying to order the member list by display_name or first name ASC.
http://sim.is/sim/felagatal-sim/
This doesn't seem to work. Any pointers out there? :/
$users = get_users(array(
'role' ...
0
votes
2answers
783 views
Sorting within nested queries / multiple meta keys
I have the following ALMOST working perfectly, but have run into a couple of issues.
Right now this displays a Books archive page, ordered like this:
Genre Name
-- Series Name
--- Books ...