fullgoodfood
Forum Replies Created
-
@joy: if you’re using a child theme this post may be of interest if you haven’t solved your issue or given up and installed Web Invoice: https://www.ads-software.com/support/topic/plugin-wp-invoice-web-invoice-and-billing-where-are-the-templating-instructions?replies=4#post-2676518
OK, my mistake – I’m using a child theme of boilerplate and WP-Invoice is looking at Boilerplate/wpi not Boilerplate-chile/wpi
@triplemoons: In WP-Invoice Global Settings tick “Use custom templates. If checked, WP-Invoice will use templates in the ‘wpi’ folder in your active theme’s folder.” and save.
If all is well you will get green box with the message “A “wpi” folder has been found, any files with the proper file names will be used instead of the default template files.”
If the folder is empty copy the wpi files from core/wpi to your theme/wpi
I had to add @import url(“../boilerplate/wpi/wpi-default-style.css”); to my CSS file but that be owing to the fact I’m using a child theme.
Good luck ??
How can we “try any theme you want” when there are instructions on how to use a different theme?
I’ve looked at https://usabilitydynamics.com/tutorials/wp-invoice/ and there no tutorials on shortcode, templates, how they work, how to modify them, how to over-ride them.
Or as my few hours trying it has found so far: I tell WP-Invoice which page it should use to display an invoice on and that’s it? I can modify the page CSS but how do I modify the information chosen? I copied all the files from core/wpi to mytheme/wpi, edited receipt_page.php and it didn’t display the changes. If I’m doing this wrong (i.e. not the way WP works in my eperience) how do I do it the WP-Invoice way?
Thanks.
Forum: Fixing WordPress
In reply to: Tax_query code not working. Help neededOr maybe not as your code is slightly different to mine, might go after the $args in WP_Query?
Mine:
$taxonomy_terms = get_terms( $taxonomy, array( 'hide_empty' => 0, 'fields' => 'ids' ) ); // Use the new tax_query WP_Query argument (as of 3.1) $food = new WP_Query( array( 'tax_query' => array( array( 'taxonomy' => $taxonomy, 'field' => 'id', 'terms' => $taxonomy_terms ), ), 'orderby' => 'menu_order', 'order' => 'asc' ) );
Forum: Fixing WordPress
In reply to: Tax_query code not working. Help neededI know this post is old but the orderby and order go as shown below:
$args = array( 'tax_query' => array( 'relation' => 'AND', array( 'taxonomy' => 'category', 'terms' => array('blog'), 'field' => 'slug', ), array( 'taxonomy' => 'post_tag', 'terms' => array('evening'), 'field' => 'slug', ), ), 'orderby' => 'ID', 'order' => 'DESC', ); $query = new WP_Query( $args );