kazie
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: List all categories with custom field values?Fantastic! Thanks man =)
Forum: Fixing WordPress
In reply to: List all categories with custom field values?Awesome! I’m able to get the custom field value of the image, however, the category url and the category name isn’t showing. Any idea what could be wrong?
Forum: Fixing WordPress
In reply to: Custom field value in category listAnybody?
Forum: Plugins
In reply to: [WooCommerce] Product tags in order confirmation email?There we go! Thanks a million.
Forum: Plugins
In reply to: [WooCommerce] Product tags in order confirmation email?This is what my code looks like now, but it’s not outputting the product brand.
<?php $term_list = wp_get_post_terms( $product_id, 'product_tag', array( "fields" => "names" ) ); foreach( $term_list as $term ) echo $term . '<br/>'; // Show title/image etc echo apply_filters( 'woocommerce_order_product_image', $image, $_product, $show_image); // Product name echo apply_filters( 'woocommerce_order_product_title', $item['name'], $_product ); // SKU echo ($show_sku && $_product->get_sku()) ? ' (#' . $_product->get_sku() . ')' : ''; // File URLs if ( $show_download_links && $_product->exists() && $_product->is_downloadable() ) { $download_file_urls = $order->get_downloadable_file_urls( $item['product_id'], $item['variation_id'], $item ); $i = 0; foreach ( $download_file_urls as $file_url => $download_file_url ) { echo '<br/><small>'; if ( count( $download_file_urls ) > 1 ) { echo sprintf( __('Download %d:', 'woocommerce' ), $i + 1 ); } elseif ( $i == 0 ) echo __( 'Download:', 'woocommerce' ); echo ' <a href="' . $download_file_url . '" target="_blank">' . basename( $file_url ) . '</a></small>'; $i++; } } // Variation echo ($item_meta->meta) ? '<br/><small>' . nl2br( $item_meta->display( true, true ) ) . '</small>' : ''; ?>
Forum: Plugins
In reply to: [WooCommerce] Product tags in order confirmation email?Could you please post the entire code-snippet?
Forum: Plugins
In reply to: [WooCommerce] Product tags in order confirmation email?Hm, not sure what to do. I only get “Array ( )” in return.
Forum: Fixing WordPress
In reply to: Custom field value within taxonomy-value?Anybody?
Forum: Fixing WordPress
In reply to: Display custom field value in lower case?Awesome, appreciate it!
Forum: Plugins
In reply to: [WP FullCalendar] Limit on entries per month?For some reason the calendar is using the same posts per page limit as the main loop. So if you want to change so that the calendar is showing all events per month, change the number to 999, or whatever in settings > reading.
Forum: Plugins
In reply to: Problem with displaying custom post typesThanks a billion, reseting the query did it!
Forum: Plugins
In reply to: Problem with displaying custom post typesThis is how I display the custom post content on my template page;
<div id="content"> <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <h1><?php the_title(); ?></h1> <?php the_content(); ?> <?php endwhile; // end of the loop. ?> </div>
Forum: Plugins
In reply to: Can only display four custom post types in a list.In functions:
https://pastebin.com/2nu1unPcIn my template file:
https://pastebin.com/GZ0S9WV2Forum: Fixing WordPress
In reply to: Custom field order breaks after 5th postOK, so this apparently had nothing to do with the 6th post.
This is how i sorted the posts before:
1st post: ordning: 14
2nd post: ordning: 13
3rd post: ordning: 12
4th post: ordning: 11
5th post: ordning: 10
6th post: ordning: 9
7th post: ordning: 8The posts are being displayed in the correct order when i changed the custom fields to;
1st post: ordning: 14
2nd post: ordning: 13
3rd post: ordning: 12
4th post: ordning: 11
5th post: ordning: 10
6th post: ordning: 09
7th post: ordning: 08It works I guess but the system seems kinda fragile.
Forum: Fixing WordPress
In reply to: Custom field order breaks after 5th post0 is the value for all categories right? I’m not using any categories so I changed it to 1 (for uncategorized) but the problem remains.