The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
6 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
10 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).
1
vote
2answers
2k views

How to order separated Custom Post Search results

I am using the technique described here Seperating Custom Post Search Results and here posts_groupby problem to seperate my search results and group them by post type. This means I have the following ...
6
votes
3answers
257 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
2answers
404 views

Custom loop of a single category, cannot order by date. What am I missing?

I'm going nuts. All I have is a simple loop on the home page of the site (which is a static page), and it should show the most recent (1) post of a certain category. The trouble is no matter what i ...
1
vote
1answer
763 views

Trying to sort and display categories(not posts) by custom field: 'order'

I'm a WordPress rookie. I've added a custom field to my "Category" taxonomy. The custom field is "custom_order" and its purpose is to hold a number so that my categories can be sorted and displayed in ...
0
votes
1answer
968 views

wp_query orderby random do not repeat infinite scroll - one loop

I have found a lot of documentation on solving this issue with multiple loops, I'm finding it hard to see a solution for one custom loop. Problem: I'm using infinite scroll to load in the next page ...
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 ...
1
vote
1answer
620 views

Sort posts by multiple meta key values

I'm not new to wordpress, but I'm not very good at PHP. I hope someone can help me, since I already tried to search for a solution for over 5 hours with no luck. So I have an archive.php page where I ...
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
18 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 ...
0
votes
1answer
600 views

WP_Query post at custom position

Lets say I have a custom query which based on two custom post types: $wp_query = new WP_Query(array( 'post_type' => array('post-type-1', 'post-type-2'), 'post_status' => ...
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 ...
0
votes
1answer
421 views

Order custom fields alphabetically

I've been trying to order the custom fields alphabetically, but I can't get the ordered list I want... this is the code I'm using: <?php $vMarca = get_field('tienda_marcas' , false, ...
0
votes
1answer
34 views

WooCommerce: Add Payment Gateway Field to Webhooks [closed]

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
2answers
1k views

Ordering Posts with Custom Taxonomy Terms Array

I can't get the order of my posts (organized by custom tax terms) to come out right in my loop. I made a custom post type of 'staff', in staff there is a custom taxonomy of 'staff-title'. I added ...
0
votes
1answer
303 views

Reordering fields in registration form via custom plugin

I'd like to reorder the fields in the default WP registration form. I'm adding additional fields with my plugin but they are appearing below the username and email fields. My code is below (it's ...
2
votes
2answers
76 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 ...
1
vote
5answers
3k views

Order get_terms using a Custom Field

I have a custom taxonomy of "crb_issues" that has a custom field associated with it that is "issue_date" which outputs a date value for each term to looks a lot like "20140601" yearmonthday. I am ...
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 ...
0
votes
1answer
37 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
4answers
46 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 ...
-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
0answers
29 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", ...
3
votes
2answers
130 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
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
32 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
15 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) { ...
12
votes
1answer
30k views

WP_Query - Order results by meta value

I've checked around and haven't seen an answer which works as of yet. I have a WP_Query with the following arguements: $args = array( 'post_status' => 'publish', 'post_type' => ...
2
votes
1answer
477 views

Custom Post Type order by modified date and custom meta field issue

I'm creating a plugin with some kind of offers that users can publish. User, in his custom administration panel, can managed his own offers. Offers are free and premium. If offer is premium it take ...
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
64 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 ...
0
votes
1answer
78 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 ...
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, ...
1
vote
2answers
638 views

Order query by post meta value

//Displaying latest post per author on front page function filter_where($where = '') { global $wpdb; $where .= " AND vipwp_posts.id = (select id from {$wpdb->prefix}posts p2 where ...
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
1answer
24 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
22 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
32 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
285 views

Retrieve taxonomy terms in order of their post's date?

I'm building out a custom taxonomy archive page that needs to list terms in order by their associated post's post_date. I wrote this, it's working, but I hate resorting to custom SQL: global $wpdb; ...
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 ...
2
votes
1answer
533 views

Rearrange elements outputted by comment_form()

I'm currently developing a custom theme from scratch. In the past week, I've been trying to change the order of the HTML elements output by the comment_form(). I basically don't know any PHP, and I ...