The tag has no wiki summary.

learn more… | top users | synonyms (1)

1
vote
1answer
208 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
363 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 ...
0
votes
1answer
209 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
268 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 ...
0
votes
1answer
70 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
392 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
2answers
81 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
1answer
100 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
184 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
128 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
30 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
198 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
382 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
84 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
45 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
1answer
32 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
1k 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
61 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
1answer
411 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
491 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 ...
1
vote
3answers
1k 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
533 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
207 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
265 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
1k 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
144 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 ...
3
votes
2answers
2k 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
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?
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 ...
1
vote
1answer
90 views

Sorting posts by custom field value

I am trying to sort posts by their custom field value, which is a date in this format: 9 August 2012, 7:18 am 'orderby' => 'meta_value', 'meta_key' => 'wprss_item_date', ...
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
1answer
120 views

Simple Data Table Update and Page Integration

There are a variety of tables (page-level, not database) in a website I manage that need to be regularly updated. The difficult issue is that this information is often only one or two data columns, so ...
1
vote
0answers
174 views

wp e-commerce sort by stock

I have a site using wp e-commerce plugin and want to sort items by stock. I have been trying for hours without any luck: I don't have an option to sort by "SKU" in the administration (as I've read ...
0
votes
2answers
173 views

Custom Query Fields - Altering Meta Value

I'm giving Custom Query Fields a shot for filtering/sorting posts on the front-end of a site. The instructions seem pretty self-explanatory, but I do have another layer that I'm trying to figure out. ...
2
votes
1answer
133 views

Sort by posts that have a featured image?

I'd like to sort posts on the index page to show those that have a featured image first. I've done this in functions.php: add_filter( 'pre_get_posts', 'my_get_posts' ); function ...
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 ...
3
votes
2answers
691 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
441 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
165 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
650 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
460 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
582 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 ...
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
2answers
166 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
385 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
512 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
305 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
959 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
167 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 = ...