The tag has no usage guidance.

learn more… | top users | synonyms (1)

0
votes
0answers
10 views

Sort custom post type by multiple custom fields

I have 4 text fields in a custom post type. How can I sort the posts by this order of text fields: brand_fbn - model_fbn - year_fbn - plate_number? This is my code, which isn't working: $ins = new ...
0
votes
0answers
22 views

Woocommerce sort by rating

I'm using Storefront to develop my site and i need to sort the products by rating at a specific part (using WP_Query). I tried without success the following code in my $args: $args = array( ...
0
votes
0answers
24 views

How to display 20 posts by categories in custom sorted order and by post tile

I need to display 20 posts by categories that have custom sort order and orderby post title. Category (VW) order 1 - Beetle - Golf - Jetta - Toureg Category (Honda) Order 2 - Civic - Odyssey - Pilot ...
0
votes
0answers
15 views

Help with Adding alphabetic sorting to Add Posts to Pages plugin

I have the Add Posts To Pages plugin installed and I want to add alphabetical sorting (ASC sorting) to posts before adding them into the page. I tried several sorting codes that were added before the ...
-1
votes
0answers
20 views

How to output most Trending and most Hot topics from all categoy in separate page [closed]

I was looking for a plugin that outputs most Trending and Most hot topics from all categories in a different page, I know it can be programatically but I would preffer if such a plugin exists, sadly i ...
0
votes
0answers
25 views

Sort orders by custom order meta - Woocommerce Orders admin page

I'm trying to sort my Woocommerce orders by _payment_method on the 'Orders' admin screen (edit.php?post_type=shop_order). So far I am able to sort by 'Pay_by_phone', but it sorts everytime the page ...
0
votes
2answers
17 views

Make a custom column sortable by a value from a different custom post type

I've created some custom columns to display my custom post types more attractively in the admin section - the columns are mostly custom fields. Mostly, this works absolutely fine, and I can sort by ...
0
votes
0answers
20 views

sorting posts (custom_posts) in author page

I want to sort posts (taxonomies) in my authors page, i want to sort them only by there one posts an have the right to edit them. I've try ed select elements but it shows results from search.php
0
votes
0answers
15 views

How to sort search results with a specific category first

I'm using the Zoner theme for Wordpress and would like properties categorized as "featured" to be first on the search/archive page. Is there a way to run the search query twice, such that the first ...
0
votes
2answers
58 views

How to order WP_Query to group results?

I have a list of products in WooCommerce that have titles like so: Please note: The "groups" are just for myself, they are not categories etc. All products are the same type of product, just two ...
0
votes
0answers
45 views

How To Sort and Filter Admin Custom Taxonomy Columns

I have a custom post-type with associated custom-taxonomies – how can I make these custom taxonomies sortable in the custom post-types admin/list view header (similar to how dates is sortable)? ...
0
votes
1answer
26 views

display wordpress user who published a pending post of another user

I have a custom post type, when I view my posts of this type in the dashboard I see: Title Author Date Added as well as a few more I have added My question is how can I display (like the author ...
2
votes
1answer
51 views

How do I set the default admin sort order for a custom post type to a custom column?

SOLUTION AVAILABLE HERE I've set up a custom post type called clientarea, and set up several custom columns for it in the admin area - the custom columns are all custom meta fields, as you can see ...
-2
votes
1answer
35 views

How to resort my id in wordpress?

When i select id from my wordpress with command select id from wp_posts;,the output is such as following: | 1382 | | 1384 | | 1386 | | 1388 | | 1392 | | 1396 | | 1399 | | 1401 | | 1403 | | 1406 | ...
0
votes
0answers
11 views

How to keep the sort order or filter applied in prev/next navigation?

I have an online shop (apartments for rent) using Woocommerce in Flatsome theme. The viewer can sort using the Woocommerce sort by dropdown menu, and filter items using Woocommerce filter widgets. ...
1
vote
1answer
30 views

sort tags by tag ID in admin panel

I want to sort tags list by tag id in my WordPress admin panel. There is 1000s tag in admin tag list and I want to know which are the latest added tags, but there are options to sort with Name, ...
0
votes
1answer
57 views

Ascending & descending posts on same page with IF statement

I need to be able to display a list of events on 1 page. The top list would be for upcoming events and to be sorted with earliest event first and the second list would be for expired/past events and ...
1
vote
0answers
66 views

Sortable product selector

I am currently trying to find the best way to implement a 'sortable product selector' into a WordPress site. The best way to describe what I am trying to achieve is by uploading screens as an example. ...
0
votes
0answers
15 views

Update wp.media state (mainly order) of images in Add Media Modal

I have to mimic a feature that was part of Wordpress 3.5 but was removed in Wordpress 4.0. When I am seeing the files uploaded to a post in the Add Media Modal, if I chose "Uploaded to this post", I ...
0
votes
0answers
37 views

Custom field column sortable in admin post list?

I have custom field in my posts named "thumbnail_url" which contains url of image. And I wish to display that image in my post list in new column. I managed to do it with code bellow. Now, I would ...
0
votes
1answer
21 views

Sort / Filter Queries

I'm working on a website, that showcases products, and now I'm working on the query part. Basically I want to have one page, that displays a list of products as a normal query, and then on top of the ...
1
vote
1answer
59 views

Sorting and limitation with pre_get_posts

This is my third question regarding WP queries and pre_get_posts (sorry about that) but I cant give up one step before the full success :) So the story - my query is limiting front page posts to ...
0
votes
0answers
24 views

Sort custom fields in admin by last field added

I'm trying to sort custom fields in admin post by last added fields but it sorted by words and number example my add is 3 , 6 , 4 , 7 , 5 , 1 when admin post save my custom sorted by number be ...
1
vote
1answer
62 views

Creating a category page by alphabet

i'm new to wordpress, and i don't know how to code. I would like to make a page where all my animes are sorted by alphabet, like in this image I've heard about the wp_list_category function, so i ...
0
votes
0answers
24 views

Static front page and orderby

I have setup a Wp_Query on a page template that queries woocommerce products. When not set as the front page my orderby filtering works perfectly. However when trying to use orderby on a static front ...
0
votes
0answers
20 views

Child categories by post date

I have created a parent category called " Shows " and have 8 different programs under it. I want to display the most recent post from all categories on first block of my template page. The code I am ...
0
votes
0answers
34 views

“meta_value_num” not working when value is wrapped in html tags

I should start by saying I have little to no knowledge of PHP, nut I am responsible for managing a wordpress site for a restaurant. I have the menu items listed in order of price using the following ...
0
votes
0answers
149 views

Woocommerce: custom product attribute sorting not working (backend)

I am having a problem sorting the product attributes in the backend. I have a product attribute called "size" which has numerical and string values (36, 37, 38 .. XS, S, M, L). Because they were not ...
2
votes
2answers
85 views

What is the most efficient way to search users by their display name?

Initially I thought I'd use get_users() but it turned out it doesn't support the display_name field. Then I've read about using WP_User_Query, but when I do it always exhausts the allowed memory size ...
1
vote
3answers
135 views

Orderby meta_value only returns posts that have existing meta_key

I have the following wp_query: $args = array( 'post_type' => 'news', 'orderby' => 'meta_key', 'order' => 'ASC', 'meta_key'=>'custom_author_name', ...
0
votes
1answer
104 views

Sort and paginate custom post taxonomies alphabetically

I need to sort and paginate custom taxonomy post types. i have a page where i have next and previous link. on clicking next and previous link next or previous brand(custom taxonomy) should load. I ...
0
votes
0answers
44 views

Filter to order Admin Custom Post List makes template query come up empty

In my template I query the posts like so: query_posts(array( 'post_type' => 'homeslide', 'meta_key' => 'slide_order', 'orderby' ...
0
votes
1answer
72 views

Custome column sort by date not title

I've created a custom column. Currently they are automatically sorting by title however i want them to sort by date. I've tried adding a "query_post" like: ...
1
vote
1answer
44 views

Sorting Media Library by Author Name

When attempting to sort my media library uploads by author's name, it appears that WordPress will only sort by author ID ( ...
0
votes
1answer
63 views

wordpress custom loop ascending descending posts by custom field

I am developing wordpress site that is depend upon price so i add custom filed named 'price' <?php while ( have_posts() ) : the_post(); echo $price = get_post_meta($post->ID, 'price', TRUE); ...
0
votes
1answer
46 views

Sorting Posts by custom field

I'm trying to sort my posts by the custom field artwork_title. When I use the following code, I just end up with one particular category of posts no matter what category archive I'm on. Also ...
0
votes
1answer
29 views

Advanced sorting of content in wordpress [closed]

Let's just say that I have website about cars. I have already created several categories, depending on which brand the cars are. My question is simple. I would like to implement some advanced type of ...
0
votes
2answers
50 views

Sort Wordpress Posts Meta value by Week not Day

Right now I have a metakey called 'epicredvote', it sorts my posts by this epicredvote number. It is doing it on a daily basis at the moment, so if I have 2 posts the post with the highest epicredvote ...
0
votes
1answer
22 views

Sortby parameter to sort users

So for my post list, currently these are sortby post_count. Now, I am trying to sort the posts by "most newest" or "recent" Here is how the shortcode works [sortby=post_count] Other parameters ...
0
votes
0answers
48 views

group search results by post type with relevanssi

I have 3 post types: post lesson series When a user searches on my site, I want the results to be sorted by post type into different containers. I am using the Tabs from Zurb Foundation for my ...
0
votes
1answer
98 views

How to make in WordPress admin panel sortable column for the custom field, that count the number of page impressions?

Good day! I try to make display post counter for WordPress. Output count of views function getPostViews($postID){ $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_key, true); ...
0
votes
1answer
37 views

Sort posts by first content letter

Question title completely reflects my issue. I'm build non-profit collection of poems, and want sort them alphabetical. Native Wordpress sorting in this case is unsuitable. Must sort poems by first ...
0
votes
1answer
174 views

group search results by post type?

My site has 3 unique post types: Default Blog posts ("post") custom type "lesson" custom type "series" When the user searches the site, I would like pertinent results from all 3 post types to show ...
0
votes
1answer
29 views

sort Posts by custom user filed

So I'm trying to sort the posts by custom user filed, I'll explain... So I have added users filed to the registration page, The fields are checkboxes, they allow the user to choose what topic he is ...
0
votes
2answers
69 views

Custom post type taxonomy not sorting correctly

i created a custom post type and also some taxonomy to be able to perform sorting on the display list. It is all working well on my local testing installation but as soon as i put on the production ...
1
vote
0answers
68 views

Best Practices for a Completely Customizable Homepage - without plugins

Let's say you have a homepage where you want to be able to feature 10 posts of various types (posts, pages, and Custom Post Types). You have hundreds of these posts to choose from. What would be the ...
0
votes
0answers
35 views

Previous Next Post Link by Post Rank Value Stored in Another Table

I'm using the Q2W3 WordPress plugin to sort posts by category. This plugin allows a drag-drop interface to change the default post order and modifies the standard taxonomy output so that posts on the ...
0
votes
0answers
16 views

how to sort post in admin column by recently

i have created custom post type my problem is: in admin column, posts are sorted by ID how can change it to date. In other words, i want to sort post by recently
0
votes
0answers
42 views

Sorting posts to make those with post thumbnail show up first

I am trying to sort post with If have post thumbnail list posts show first(i need the posts without thumbnail to show after it) by title. $args = array( 'post_type' => 'post', 'meta_key' ...
0
votes
1answer
118 views

wordpress sorting using array merge by price in ascending order but price with 0 must be show last

I'm using below code to filter the query on page and sort the post in ascending order by price. I'm getting desire output but my concern is , i want all price with 0 at last. <?php global ...