Support

Account

Forum Replies Created

  • Hey John, thank you for helping me out with this.

    Buddy of mine who’s more experienced in development helped me out already. And here was the final code being used now:

    function sd_loop_product_cat_note() {
    	// Get the category terms
    	$terms = get_the_terms( $post->ID, 'product_cat' );
    	
    	// Only proceed if there is at least 1 category
    	if ( $terms && ! is_wp_error( $terms ) ) {
    	
    		// Get the first term
    		$first_term = $terms[0];
    		 
    		// Get the product note for that term
    		$sd_loop_item_suffix = get_field( 'sd_product_archive_suffix', 'product_cat_' . $first_term -> term_id );
    	
    		// Output the product note
    		echo $sd_loop_item_suffix;
    	
    	}
    	
    }
    
    add_action( 'woocommerce_after_shop_loop_item', 'sd_loop_product_cat_note', 5 );

    This code displays the needed ACF field value in the Shop loop and Category loop in my website. (^_^)

  • Hey John.. Wow! Thank you for the information.

    The idea of passing the data from the ACF date field into a custom field sounds really doable. And I’ll keep that in mind for my next build or website tweak later.

    The information you’ve shared is very helpful. Thanks again.

  • THANK YOU SO MUCH~!

    I was finally able to filter the orders using that suggested format.

    For knowledge purposes and curiosity..

    What sort of issues would be encountered if the date field values were stored as dates?

  • The original issue seems to have been resolved for me.

    A new observation regarding compatibility for me now is that paragraph tags are wrapped around the shortcode when I hit a new line in ACF’s WYSIWYG editor. For example:
    <p>[su_row]</p><p>[su_column size="1/3"]</p>

    I’ve also tried manually removing the paragraph tags via the Source Code button in ACF’s WYSIWYG editor, but the paragraph tags remain.

    For the others experiencing this as well, I’m working around it by using Shift+Enter (line breaks) instead of Enter (paragraph).

  • Thanks so much for the guidance @elliot! Images are now showing.

    Now to go search in the forum on how others have managed to set a custom size and later read up a little more on the $post_id paraments.

    Thanks again.

Viewing 5 posts - 1 through 5 (of 5 total)