WordPress development tutorials

How to Generate a Post Excerpt Outside the Loop

…> <ul> <?php foreach ( $posts as $post ) : ?> <li> <a href=”<?php echo esc_url( get_permalink( $post->ID ) ); ?>”><?php echo esc_html( $post->post_title ); ?></a>: <?php if ( empty( $post->post_excerpt ) ) : ?> <?php echo wp_kses_post( wp_trim_words( $post->post_content, 20 ) ); ?> <?php else : ?> <?php echo wp_kses_post( $post->post_excerpt ); ?> <?php endif; ?> </li> <?php endforeach; ?> </ul> Our post lists will show the excerpt if set, or gene…

Read More

New year

New Year, New Goals: Happy 2015 & our Year in Review

…s Customer / Order CSV Export FreshBooks PayPal Express Cybersource SA SOP URL coupons and Chase Paymentech also saw some significant changes, and we’ve added a lot of “for developers” hooks to our Measurement Price Calculator extension. Q3 2014 Between June and September, we onboarded Tamara and Illimar, and revamped our internal development systems. This is were Tam took the lead on automating our plugin deploy processes so that we can now packa…

Read More

Ask SkyVerge

How to Remove WooCommerce Product Images from the Cart

…to help us with this. Typically, this uses something like <a href=”product_url”>product_name</a>, but we can force it to just return the product name instead. function sv_remove_cart_product_link( $product_link, $cart_item, $cart_item_key ) { $product = apply_filters( ‘woocommerce_cart_item_product’, $cart_item[‘data’], $cart_item, $cart_item_key ); return $product->get_title(); } add_filter( ‘woocommerce_cart_item_name’, ‘sv_remove_cart_product_l…

Read More