Publicize and woo commerce
-
New to trialing publicize for a site I am working on. I have setup a test site and test Facebook page. When I create a post and attach no image it works as expected and doesn’t add an image.
I did try adding some code to a custom plugin :
if ( $media ) {return $media;} else { $permalink = get_permalink( $post_id ); $url = apply_filters( 'jetpack_photon_url', '/wp-content/uploads/2015/03/failover.png' ); return array( array( 'type' => 'image', 'from' => 'custom_fallback', 'src' => esc_url( $url ), 'href' => $permalink, ) ); } } add_filter( 'jetpack_images_get_images', 'jeherve_custom_image', 10, 3 );
This doesn’t seem to work, am I missing something ?
Also when I post from a product from woo commerce it pulls a blank square but if i select a category for the product with no image it pulls a random image in nothing to do with a product.
Any assistance gratefully received.
Thanks in advance
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Publicize and woo commerce’ is closed to new replies.