larrygeams
Forum Replies Created
-
Everytime I create a new market and add to map it says undefined
Forum: Plugins
In reply to: [WooCommerce] Mini Cart Thumbnails Are Not Showing on Single Product PageThis was the code from the wc template
$thumbnail = apply_filters( 'woocommerce_cart_item_thumbnail', $_product->get_image(), $cart_item, $cart_item_key );I used this code below to get the url and it fixed the issue
$thumbnail = get_the_post_thumbnail_url( $_product->get_id(), 'woocommerce_thumbnail' )nothing happened. the issue is still there.
I think I figured it out already.
function dynamic_select($choices, $args = array()) {
$args = array(
‘post_type’ => ‘properties’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => 3,
);$the_query = new WP_Query( $args );
while ( $the_query->have_posts() ) :
$the_query->the_post();
$output[get_the_title()] = get_the_title();
endwhile;return $output;
}
add_filter(‘wpcf7_dynamic_select’, ‘dynamic_select’, 10, 2);