The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
2 views

woo commerce order success page not redirect

On our Word press site, we have developed a woocomerece payment gateway plugin and it passes the order id and the amount correctly, furthermore if we cancel the payment on the gateway it redirects the ...
0
votes
0answers
6 views

woocommerce display total of completed orders on a product

I want to display the total of only completed orders of a product, now total_sales are displayed, but it contains the total of all orders of a product (processing or completed orders).
6
votes
3answers
247 views

Ignoring initial articles (like 'a', 'an' or 'the') when sorting queries?

I'm currently trying to output a list of music titles and would like to have the sorting ignore (but still display) the initial article of the title. For example if I had a list of bands it will be ...
0
votes
0answers
9 views

comments sorting incorrectly across multiple pages

This is a related_comments.php file which should display comments on certain pages in ascending order while the newest comment should be at the top. This is working fine if there is only one page for ...
0
votes
2answers
34 views

Advanced WP_Query with meta_query, orderby?

I wonder if anyone can help me with this little complex query with ACF. I have the following so far which should display: Pages, News Articles, About Articles and Involved Articles. Show: only ...
0
votes
0answers
13 views

Error in checkout page but order is booked

On my checkout page I get this error message: "Payment error: Invalid merchant account ID". Despite the error the order is set in orders. How can I prevent a new order when there is an error. ...
0
votes
0answers
3 views

Separate carts in one order

I have to create a commerce site where user can combine items in packs within one order like ie. in cart is 6 items. 4 in one pack and 2 item in second pack. Each pack goes to different address. Any ...
0
votes
0answers
22 views

Order char by post title

This is my code: $args = array( 'post_type' => 'post', 'orderby' => 'post_title', 'order' => 'DESC', 'posts_per_page' => 15, 'tax_query' => array( array( ...
0
votes
0answers
17 views

Guest order view

Does anyone know how to configure woocommerce the way that "guest" customers could view their orders online. maybe additional plugin? with some verification fields like email & order#.
1
vote
2answers
26 views

Ordering Taxonomies / Changing term_id

I have a site where there are nearly 200 series (custom taxonomy) and roughly 10 items (posts) in each. Each series is called 'Name: Series Number - One liner bout the series'. When I use get_terms ...
1
vote
0answers
12 views

Get the taxonomy of a post hierarchically

I would like to get all the taxonomy of one post (in a loop), hierarchically. Example I have those taxonomies, and the ID of the tax in bracket. Tax1(1) -Tax2(3) --Tax3(2) I would like to gather ...
0
votes
1answer
18 views

Sort by meta key within same day

I try to build something that can sort posts by day - and whithin the same day sort them with any meta value (integer) - like popularity or vote or what have you. So that, in the end, i get today's ...
2
votes
2answers
74 views

List of posts by day of the week

I have Radio with programs and they are associated to day of the weak. Example: 1-Program Disco Nights plays at Monday and Friday 2-Pragram Crazy weekends play only at Sunday 3-etc 4-etc ...
0
votes
1answer
31 views

WooCommerce: Add Payment Gateway Field to Webhooks [on hold]

I have created a custom Payment Gateway for a special EFT system we have setup. The Bank Account and Routing Number are supposed to get encrypted then sent to a Salesforce via the WooCommerce webhooks ...
0
votes
1answer
36 views

Orderby modified only for specific post types

Here is my WP_Query in which I want to fetch data from multiple custom post types and order them by the modified date: $args = array( 'post_type' => array( 'staff-updates', 'employees', ...
0
votes
2answers
38 views

How to display taxonomy terms the way they are hierarchical

Reading Kaiser's query and Scribu's answer I'm now in an ocean of no shore. I made a custom taxonomy, where I want to show the terms as per their hierarchy, like below: Level 0 -- Level 1 --- Level 2 ...
-2
votes
1answer
29 views

Sort wordpress posts by facebook likes [closed]

I found a theme that I really like: http://pluto.pinsupreme.com/masonry-compact-facebook As you can see every post has Facebook likes displayed in the exerpt. I would like to know if it would be ...
0
votes
4answers
45 views

POSTS list in WordPress by views

I need a code that causes: <?php while ( have_posts() ) : the_post(); ?> List according to the amount of VIEW, is like to list popular posts only that it will enter the table mh_postmeta, and ...
0
votes
0answers
28 views

Send New Order email to Admin on custom Status

I have created my custom order status "Pending Approval" as Default Order Status, Means if a customer order something from store, it will place it under "Pending Approval" instead of "Processing", ...
0
votes
0answers
31 views

Change sort order when using 'orderby' => 'type'

When doing a wp_query with the following parameters: $arg = array( 'post_type' => array( 'activity', 'publication', 'project', 'course' ), 'order' => 'ASC', 'orderby' => 'type', ...
0
votes
0answers
29 views

Ordering posts in chronological order by category

I have pages that populate all the posts within a category. Here's an example. I would like these posts to be ordered in chronological order, but currently it's in reverse chronological order. I ...
0
votes
0answers
13 views

Admin list: sort by default by custom column

I created a custom column like this: if( (isset($_GET['post_type'])) AND ($_GET['post_type']=="sales") ) { function inventory_column($columns) { ...
3
votes
2answers
128 views

How do I reorder (pop and push) items from WP_Query?

I have this piece of code: $normal_args = array( 'order' => 'desc', 'ignore_sticky_posts' => 1, 'meta_query' => array( array( 'key' ...
0
votes
0answers
18 views

Is there a way to sort posts by taxonomy terms? [duplicate]

I was wondering if I could sort posts at all by taxonomy terms? I've read that I can't, but I'm not too sure about that? If so, how do I go about doing so? Sorry for the rather short question. I ...
0
votes
1answer
76 views

Woocommerce - Display product category of product in Orders page

I need to show the product category of product in admin Orders page when a customer make a purchase.Appreciate if any one can help. :) screen shot attached where in need to display product category of ...
0
votes
1answer
63 views

wp_list_categories() by alphabet? (ex. only category titles that start with “A”) [closed]

I have used this code function show_categories_fn(){ return wp_list_categories("echo=0&title_li"); } add_shortcode('show_categories', 'show_categories_fn'); I got the category list but I ...
1
vote
1answer
44 views

Limiting woocommerce line_total decimal length

I am trying to get line_total woocommerce price, but i just cant figure out how to deal with number of decimals. It is now showing price with 4 decimals like 5.5444$ and i want it to show max 2 ...
0
votes
1answer
29 views

How Do I Get My Post Tags to Alphabetize?

I'm using a self-hosted WordPress site with a Child Theme of Twenty Thirteen. After I requested the same question in the above title, the Child Theme's Developer suggested that I come here and attempt ...
0
votes
0answers
47 views

How to filter woocommerce order with category

I want to filter orders by category of products, what I have tried based on research is : $filters = array( 'post_status' => 'any', 'post_type' => 'shop_order', 'posts_per_page' => 200, ...
0
votes
1answer
23 views

Find by post_meta, then sort by post_meta, then sort by date (wp_posts)

I have a custom meta field that I find a list of posts from. This custom meta is a numerical attribute (1-10) and I need to sort by 1-10, but I also need to sort by post date. So if two items are ...
0
votes
1answer
21 views

Query All Attachments and Order by Parent Publish Date

I'm working on a project where I need to query all of the image attachments and then organize them based on the date the post they were attached to was published. The query below worked well, except ...
1
vote
1answer
45 views

get_terms orderby numeric

I am trying to order my terms numeric. But the problem is that nog every term is numeric. So I have the following terms (check image below) which some of them are dimensions and some are others. As ...
0
votes
0answers
26 views

Change BuddyPress Activity Stream Order

Currently, BuddyPress Activity Stream is displayed date order. Latest activity is displayed at first. I need to make it, by recent comments. For a example there is activity called "Nimal became a ...
0
votes
0answers
31 views

SQL / Select users depending on meta value - meta keys, sorted by a meta value - meta key not in the select

I'm trying to select users with one of several meta keys corresponding to a meta value, and to sort the results by a meta value associated to a meta key which is not in the select. In other words, I ...
0
votes
1answer
28 views

Get usermeta info from sql query

I'm using WooCommerce and need to get my users billing name, billing address, billing phone, billing email, etc from wp_usermeta in a good format like this: name,address,phone,email fake name, 123 ...
1
vote
1answer
20 views

Rewrite and custom post type: order by custom field not working

I have a custom post type "placement" with a custom field "position". What I want to do is, on the placements archive page, to order results by the "position" value. I have the following URL rewrite ...
0
votes
2answers
20 views

How to properly get popular Posts by multiple Values

I am trying to display Popular Posts on my website, selected by a mixture of Views and Comment Count. Since views are always way more than Comments, I am multiplying the Comment Count by X, but it ...
0
votes
1answer
28 views

Custom post order when using OR relation

I have a custom post type named Faculty. They can be any of the type MCT, MLT, or MT. MCT -> A, B MLT -> C, E MT -> C, D I want to list all MLT and MT faculty on a page in order by last ...
0
votes
1answer
15 views

Child pages not affected by orderby

My loop won't order the child pages I'm displaying in the order I want them to, neither ASC or DESC. I've already seen many other similar issues, but those were resolved with disabling plugins (which ...
0
votes
1answer
37 views

Display a list of all post from the Author in the author's page (author.php) in alphebetical order

wordpress noob here. I'm trying to get a php code that will list all of the author's post in the author's page, or in author.php file, in alphabetical order. If anyone here knows how, please help.
0
votes
1answer
47 views

Help ordering custom query by Title, Ascending

I have an old project (custom post type query) that needs an alteration and my memory/skill level is lacking for what to do. With the code below, I'm needing to return the first query in alphabetical ...
0
votes
0answers
13 views

Change the priority of multiple custom taxonomy metaboxes

This question has been answered here... Changing the priority of a custom taxonomy's metabox But I need more clarification... How does this work for multiple custom metaboxes? Let's say the ...
0
votes
0answers
99 views

Display Woocommerce Orders for specific author

I tried finding lot of options and used lot of functions so far in my woocommerce theme but i am unable to find any solution for this issue. This platform is my my only hope so far. What I want? I ...
1
vote
1answer
32 views

Problem with orderby

I am querying the terms in a custom taxonomy i have with the following code: <?php $term_id = 2; $taxonomy_name = 'rete'; $termchildren = get_term_children( $term_id, $taxonomy_name ...
0
votes
0answers
29 views

Sort products by custom taxonomy name

I'm trying to sort all products on the shop page by a custom taxonomy category which is in this case product_brand. What I want is when I choose from the dropdown sort by Brand all products to be ...
0
votes
0answers
87 views

How to get posts ORDERBY a custom taxonomy term's custom field?

I have a custom taxonomy program_taxonomy : /* register a common taxonomy for DRAMAS & reality_shows to get post by terms in PROGRAMS page */ register_taxonomy( 'program_taxonomy', array ...
0
votes
1answer
31 views

Configure query with multiple categories in a custom order?

I have a site with posts in 16 categories ("departments"). The home page is a grid of the current (newest) post in each category. I would like to create the HTML for displaying a department's ...
1
vote
0answers
43 views

Why does pre_get_posts() return “date” as the orderby parameter for every sortable column?

I am stuck trying to get a custom column to sort according to a custom field. I have two custom post types: Brand and Product. I would like the Product admin screen to have a "Brand" column, and for ...
0
votes
0answers
18 views

Ordering results by last login date

I want to order posts by a post meta field and last login date. Here I use a custom post type called 'Agents'. Agents is a user group and they can login through frontend. For Agent logins, I record ...
0
votes
0answers
34 views

Post list order by category or taxonomy with URL

I would like order the blog post by my custom taxonomy or if not possible than would like order by category. My custom taxonomy content a year. (2015,2014,2013 etc) I would like make a similar ...