The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
43 views

How to make post button to a random post

As you can see on my website http://www.kieshetsnel.nl/emma-watson-natalie-portman/ I currently have an Arrow left and right on the screen. But when i click next post (volgende keuze in Dutch) I ...
0
votes
0answers
34 views

Calculate the total of 2 meta values and ORDERBY

I've configured products in WooCommerce to use a point system (either 0 or 1) using Advanced Custom Fields and would like to order the products by these values - there are 9 options in total per ...
0
votes
0answers
6 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 ...
2
votes
0answers
18 views

sort by date in Advanced Custom Field

I am trying to filter posts with certain values and sort by the date field using ACF module. I have succeeded in filter with package and type. But when i added date sort, its not working. Please help ...
0
votes
1answer
46 views

How to check if a product is purchased within the last 365 days before displaying something

I have a WP site using WooCommerce. Our products are made up of physical stock, a download and some links to pages on our site. I had set this up by placing the links to the specific product pages ...
-1
votes
0answers
22 views

Getting Position of a post in a category with order ASC / DESC

I need to know if is there is a way to order DESC regarding this topic. Getting Position of a post in a category
-1
votes
0answers
25 views

How do I show zero-priced products at the end?

There is a WordPress/WooCommerce site, which uses the ascending price sort order. There are products which have zero price. I need them to be displayed at the end. The loop looks like: <?php ...
0
votes
2answers
28 views

Orderby doesn't work like expected on custom query

I have this custom query: query_posts( array ( 'orderby' => 'rr_recommends_count', 'meta_key' => 'rr_recommends_count', 'order' => 'DESC', ) ); Which orders the posts ...
-1
votes
0answers
18 views

Sort Products by Product Category Order as defined in Admin panel

I've done a lot of searching without any success. Trying to order the products page into a nested subcategories using WooCommerce. I've had some success by using the code below to set the ordering to ...
-1
votes
1answer
50 views

Woocommerce Pre Orders view order link wrong [closed]

The link that the pre order module produces in My Account doesn't work. It has to display like this: /my-account/view-order/15977 but how it displays now is: /my-account/?order=15977. How can i change ...
0
votes
0answers
14 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
25 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
1answer
20 views

Filter query posts by the count of metas for a meta key

I know it is possible to filter queries to order posts by the numeric value of a meta. For example, I store the number of total likes for a post in a single meta key : ...
0
votes
2answers
25 views

get_post orderby not working in plugin

Please take a look at the loops below, I'm having issues trying to order the attachment by title, name, and modified. <?php foreach ($instance['data'] as $id) : ...
2
votes
0answers
63 views

Custom WP_Query order by post_meta and (author) user_meta

I am having an issue that i couldn't find on google and elsewhere. To put problem in the context. I am making a wordpress site where user can put their tutor listing for giving a tutorials, and i am ...
1
vote
0answers
100 views

woocommerce place order using curl? [closed]

I need to place order using curl in wordpress woocommerce. i already tried this but its not working. My error {"result":"failure","messages":" \n\t\t\t We were unable to process your order, ...
0
votes
1answer
17 views

Accidental reverse order of menu items in one menu

On my website I have two menus - one on the top and the second which appears after scrolling down. The order of menu items is correct in "scrolling-menu", and in the "top-menu" it's reversed. What ...
0
votes
1answer
88 views

WP_Query order by date in meta_value

i have a small problem i think. this is my code for my category-releases.php: <?php $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array( 'posts_per_page' ...
0
votes
1answer
48 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: ...
2
votes
1answer
76 views

next and previous post link ordered alphabetically

I found a snippet, which order all posts alphabetically. I wonder if is there a way to make it working just for one post-type? I have some custom post type in my website, and i want one of them to be ...
0
votes
0answers
13 views

problem in the loop with wp-PostViews

I'm trying to loop using the wp-PostViews plugin, my intention is that it lists the first that has larger view. The problem that is happening is that it is not listing all the posts, just those that ...
0
votes
0answers
19 views

Show custom field value in Edit order / Print invoice page

I've got the following in my functions file: if ( isset( $_POST['university'] ) ) { update_user_meta( $customer_id, 'university', sanitize_text_field( $_POST['university'] ) ); } This in my ...
0
votes
0answers
46 views

order posts with conditions & meta_key merge

i want a code to orders my blog posts using a "conditions" & combinaisons of 2 meta_key so details: if ( postviews < 20 views in exmple) ==> those posts order with date ==> here ...
1
vote
2answers
85 views

Order by menu structure

As I'm making one page website. Here is question I asked earlier: Calling Specific Pages with wp query Part II As I'm calling all pages by WP_Query which is "order by = ASC" I want to call it "order ...
5
votes
1answer
132 views

Select all in parent category, group by child category?

I am trying to format a custom post type for a "series". Each post is an Episode, each Episode belongs to a Season, and each Season belongs to a series (just like a TV show). I have the following: ...
2
votes
1answer
107 views

WP_Query sort by comment meta data

Is it possible to use the WP_Query class to order by comments meta data fields?
0
votes
2answers
51 views

Get posts ordered by meta data

I have a post type gtre and metadata price. The 'price' metadata I get using get_post_meta($post->ID, 'key', true)["price"]; So I don´t know how exactly should I write the args for WP_Query ...
0
votes
0answers
48 views

Change order custom taxonomy

I've created a custom taxonomy BH Job Regions . Now I would like to change the order of the terms in my taxonomy list. Is there a plugin or so that I can do this in my backend? Drag the terms in ...
0
votes
1answer
28 views

Post ordering not working with custom field

I am trying to create an Events CPT with a widget, and can't seem to fathom out how to get the ordering done right. My arguments that I have are: $event_args = array( 'post_type' => 'event', ...
0
votes
1answer
54 views

Filtering by multiple conditions in the loop

I'm trying to filter the posts in my index by multiple conditions. So far I've tried with this: <?php $query = new WP_Query( array( "post__not_in" =>get_option("sticky_posts"), ...
0
votes
1answer
51 views

Alphabetical order in taxonomy.php

I created custom post types and a taxonomy-adhesion.php file (by copying the contents of the archive.php file). I wish the search result would appear in alphabetical order (or by title), but it does ...
0
votes
1answer
100 views

User list order by user meta

i have created user vote that can vote users or author of posts. so for example have 4 users which looks: user --- ID=1 --- META KEY='_thumbs_rating_up' --- META VALUE='13' user --- ID=2 --- META ...
1
vote
1answer
67 views

Complex WP_Query order request: DESC by day, but then ASC by time

I've got a site with a couple thousand time-stamped posts in a custom post type. These get displayed by a few taxonomies and a date query in various views (I've got that all working just fine ...
0
votes
1answer
31 views

Using orderby with 2 meta keys

I can use orderby with one meta key in the WP_Query using following: 'orderby' => 'meta_value_num', 'meta_key' => 'my_key_1', However is it possible to use orderby based on the calculation ...
0
votes
1answer
41 views

WP_User_Query orderby meta_val_num

I know that normal WP_Query's can have an "orderby" parameter of "meta_value_num", but when I try to user "orderby" => "meta_value_num" on a WP_User_Query, it doesn't seem to work. Anyway I can ...
0
votes
1answer
23 views

Creating a post that contains a list of other posts like a table of contents

Is it possible for a post to contain a list of other posts, with a custom ordering like a table of contents? Similiar to the above but is it possible to create a category with a custom ordering of ...
1
vote
1answer
132 views

How to order a post type with meta_value_num and if meta_value_num does not exist then order by date

I want to order a list of post on basis of ratings. I have used meta key "wp_ratings" for storing the rating value in wp_postmeta table. Now I want to sort all posts . If a post does not contains the ...
0
votes
1answer
102 views

WP_Query custom order and pagination

I am seeing some strange behaviour when combining a custom order with pagination when using WP_Query. The arguments for my query are as follows: $args = array( 'post_type' => 'news', ...
0
votes
1answer
42 views

Want to order by Meta Values (tweaking Post Order Widget)

I'm not much of a coder, but I can tweak PHP a bit. Basically I want to order by a custom meta value which integer called "price". The plugin orders by title, so thats what I'm changing to price, ...
0
votes
1answer
86 views

Order posts by custom column using pre_get_posts

Is it possible to sort posts by custom column in wp_posts table (in this case, 'fav_count' column) using pre_get_posts filter? If not, is there any other way to do this before the main query is run, ...
0
votes
0answers
61 views

Sorting “menu_order” does not work in WP Query with multiple post types

When i use my WP Query as follows: $post_types = array('research'); $args = array( 'posts_per_page' => 10, 'orderby' => 'menu_order', 'order' => 'asc', ...
0
votes
1answer
83 views

Display Custom Taxonomy Terns ordered by meta_value

I got stuck with ordering custom taxonomy. I've created a hierarchical custom taxonomy called Brand and created some meta tags including one called position. Now I would like to display my terms ...
0
votes
1answer
130 views

Sorting terms individually for each post

I have a custom taxonomy named author containing multiple terms. The default output order in the front end is alphabetically. But I like the authors to be ordered individually per post, e.g. First ...
1
vote
2answers
148 views

Custom post type archive with rand and meta_value

I have a custom post type that have a meta_key custom_meta_sponsored that owns alphabetical values. "X" means post doesn't sponsored. I want to show the archive page in custom order, sponsored first ...
-3
votes
2answers
255 views

Post list category plugin alphabetical order [closed]

Is there a way we can set these to list the posts in the category by alphabetical order?
0
votes
1answer
94 views

paginate_links() Change the order of links

While using paginate_links() function of WordPress, i need to change the order in which it echo's its output. For example, by default it will output pagination links in this format: Default Output: ...
0
votes
0answers
74 views

Order posts by ACF checkbox

I would like to order the posts (archive.php) by listing the ones with the ACF checkbox "Premium" first, could someone please offer some advice?:) This is what I've tried so far: <?php echo ...
0
votes
1answer
31 views

Add filter to Orderby Parameter using Array

Using WP-Query, I'm setting the Orderby parameter using an array: $events_args = array( 'post_status' => 'publish', 'post_type' => 'events', 'meta_key' => 'start_time', ...
0
votes
0answers
42 views

Dynamic change order value

I have custom post type "Movies" and I have added order attribute to it. add_action('init', 'my_custom_init'); function my_custom_init() { add_post_type_support( 'Movies', 'page-attributes' ); } ...
2
votes
3answers
219 views

How to order posts (woocommerce products) alphabetically but ignore certain words, eg 'The' and 'An'

I need to order my Wordpress posts (that happen to be Woocommerce products) alphabetically, but I want to ignore certain words, eg. 'The' and 'A' and 'An'. Is there a function or filter that can be ...