sagalbot
Forum Replies Created
Viewing 7 replies - 1 through 7 (of 7 total)
-
Forum: Plugins
In reply to: [WooCommerce] Database error – Duplicate key name 'location_type_code'I can no longer run my unit tests based on this error. Any suggestions?
Forum: Plugins
In reply to: [WooCommerce] How to pull custom attributes for product on shop/category page@demetrioman, you just need to wrap your
foreachin a conditional:<?php $terms = get_the_terms( $post->ID, 'pa_subheading' ); if ( $terms && ! is_wp_error( $terms ) ) : foreach ( $terms as $term ) { do your stuff here. } endif; ?>Thanks jonahcoyote, I ended up finding that link yesterday and it was exactly what I needed.
Thanks!
Is this resolved? I am still having the issue.
Forum: Fixing WordPress
In reply to: Error with coding when using validation checkStumbled upon this from google. You need to wrap your
litags with aul.Forum: Plugins
In reply to: Custom Shortcodes, Includes, and Return.FYI, I came up with a solution that didn’t require me to rewrite any code. Using:
ob_start(); include TEMPLATEPATH . '/assets/inc/forms/basic.php'; $content = ob_get_clean(); return $content;I was able to assign the included page to a variable. Yeehaw!
Forum: Plugins
In reply to: Custom Shortcodes, Includes, and Return.Sorry about the code snippet, just read the rules regarding Code.
Thanks for the reply. Adaptation it is.
Viewing 7 replies - 1 through 7 (of 7 total)