WooCommerce – Print Processing orders [closed]

Here’s the solution: Remove the SKU table header Add (SKU) to the Product header Product (SKU) pass false, true in email_order_items_table function $order->email_order_items_table(false, true) This is not the visual result you were expecting, but it works and it shows the SKU. The second parameter in email_order_items_table indicates whether to show the SKU or not.

Query All Attachments and Order by Parent Publish Date

After spending some time reading the documentation for WP_Query’s Order & Orderby Parameters I found the following listed parameter to almost get me there: ‘post__in’ – Preserve post ID order given in the post__in array (available since Version 3.5). Unfortunately I wasn’t using post__in but rather post_parent__in so ordering by post__in didn’t work. It wasn’t … Read more

How can I use WP_Query argument ‘Like %..%’?

After another search in WordPress codex I find the solution: Search Parameter Show posts based on a keyword search. s (string) – Search keyword. Show Posts based on a keyword search Display posts that match the search term “keyword”: $query = new WP_Query( array( ‘s’ => ‘keyword’ ) ); http://codex.wordpress.org/wp_query#Search_Parameter For my example: $resume_args = … Read more

how to exclude store in clipper theme wordpress code php

Put your category id’s in an array format. Like the below one. $cat_related = query_posts( array( ‘post_type’ => APP_POST_TYPE, ‘post_status’ => ‘publish’, APP_TAX_CAT => $string_array, ‘ignore_sticky_posts’ => 1, ‘paged’ => $paged, ‘post__not_in’ => array($post->ID), ‘category__not_in’ => array ( $store_id )// this is STORE ID ) );

Problems with WP_Query, Loop, a condition and Posts per Page

Just for your Info. I switched my Plugin to Advanced Custom Fields and created the Query like this. Maybe it was because of the “-” I used in my CustomField or it was the format of my Date. $today = date(‘Ymd’); $args=array( ‘post_type’ => ‘veranstaltungen’, ‘posts_per_page’ => 3, ‘meta_query’ => array( array( ‘key’ => ‘ende’, … Read more