The sort tag has no wiki summary.
1
vote
2answers
144 views
Sort Posts by Multiple Meta Values
1) Custom Post Type named "Buying_Locations"
2) Each Post has three meta values of: State, City, Store Name
QUESTION:
How can you show a list of these posts sorted alphabetically by State, then ...
0
votes
2answers
179 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
2answers
59 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
2answers
165 views
Custom Taxonomy Sort For a Custom Query
I am trying to custom sort taxonomies on a custom query I have written for one of my website
I cannot use any custom plugin as I have tried and they do not work with my current setup.
...
2
votes
1answer
144 views
Search results sorted by post types
I am working on a site with several post types - 4 to be exact - and I am trying to setup the search results page to have a filter/sort the results by post types.
For example, when a person searches ...
1
vote
1answer
105 views
Sort by page information by Ascending Numbers
Basically I have a problem that I have details being pulled from advanced custom fields and I currently have them ordered by page title in ascending order.
However, instead of ordering them Ascending ...
0
votes
1answer
32 views
How to get alphabetic listing x other posts, based on first letter post?
Let's say I have a post called "Hello World" and I am on that page... Let's say I have different posts like "Haaaa" and "Hoooo".... What I want to do is showing Haaa and Hooo in a different place (let ...
0
votes
1answer
13 views
List CPT by menu_order with children right after parent
I registered a custom post type drawer where my posts are ordered using menu_order. Each drawer could be a child of another drawer, on a multiple depth (parent > child > child of child > child of ...
0
votes
1answer
28 views
sort custom post type by display name
I am trying to sort my custom post type in a few different ways using a dropdown.
When I try to sort it as the display_name it doesn't work.
$wp_query = new WP_Query(array('orderby' => ...
0
votes
1answer
50 views
Sort categories by meta value
How can I make a list of categories with 4 last posts in each where every category is sorted by meta_value.
For example, template without sorting by meta_value is http://pastebin.com/AeH6vx9b
It ...
0
votes
1answer
98 views
Gallery shortcode numerical sorting
When I try to sort a Gallery created through the [gallery] shortcode by numerical titles I get them sorted in alphabetical order. That means that they are sorted like so:
1, 3, 34, 4, 56, 6, etc.
...
0
votes
1answer
115 views
Select custom posts by meta_value and sort by a different meta value
I have my query set up like this:
$article_query = new WP_Query(array(
'meta_key' => 'issue',
'meta_value' => $post->ID ,
'post_type' => ...
0
votes
1answer
50 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 ...
0
votes
1answer
143 views
How to Sort posts by Vote Count?
Does anyone know how to automatically sort posts by Vote Count?
I am using a plugin called WP Voting where a visitor can vote on a post. The plugin keeps track of how many votes each post has. The ...
0
votes
1answer
135 views
WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
I'm trying to write a new "related posts" widget (for the single post view) for my custom post type, filtering by custom taxonomy terms that the related posts should have in common with the current ...
0
votes
1answer
100 views
How to sort queried pages by an array of page ids?
I'm creating a one page wordpress website, and I need my 'home', 'about', 'portfolio', 'services' and 'contact' pages to all be on my front page. I created the following page template for my front ...
0
votes
1answer
26 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
23 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', ...
0
votes
1answer
334 views
How to sort by custom field value?
I am using these code to sort most Commented, Most viewed Posts
<?php $params = $_GET;
unset($params['orderby']);
unset($params['order']);
unset($params['v_orderby']);
unset($params['v_sortby']);
...
0
votes
1answer
100 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 ...
-1
votes
1answer
38 views
Search from Post on the basis of custom fields
I have shown all the Post on a page. Where i want to add Filter for sorting Like Date and other Custom Fields.
So how can i Do this Please Help me.
-1
votes
1answer
170 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):
...
2
votes
0answers
101 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. ...
2
votes
0answers
791 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 ...
1
vote
0answers
139 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
0answers
23 views
Sort by user meta data
I am using the plugin: ep-display-user and can't get it to sort by meta. This is my code:
function epdu_get_users($visible){
$user_ids = $this->wpdb->get_col("SELECT ID FROM $this->table ...
0
votes
0answers
12 views
Filter by Author on Category Pages
I'm looking for a solution to filter/sort posts by author on category pages/archive pages, ideally by means of a drop-down menu.
I've searched the Wordpress plugin repository but cannot find any ...
0
votes
0answers
71 views
wp_query orderby value not from meta_value
I'm using the myreviewplugin to add ratings to posts. I'm now working on the posts loop and customising the query using wp_query.
Everything is working fine, but I need to expand the orderby ...
0
votes
0answers
52 views
Archive page - display specific post first
This is something I haven't heard of before but must be fairly easy to do?
In the archive.php file, Given the id of a certain post (probably passed as a variable through the url) I want to know how I ...
0
votes
0answers
39 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
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 ...
-1
votes
0answers
48 views
Sort post in a category alphabeticaly with the stick in that category on top?
I need to be able to sort posts in categories alphabetically with the sticky posts in that category listed first on top also sorted alphabetically.
Apple*
Banana*
Watermelon*
Coconut
Grape
Orange
...
-2
votes
0answers
43 views
Get all posts starting with first two letters in Wordpress
I have a plugin in which an alphabetical list is posted where people can click on a letter and they get the posts with that letter. So if they click on A, they see all post titles starting with the ...