RSS audio enclosures have length of zero (podcast duration is missing)

I have had success at creating an RSS feed with enclosures containing episodes of my podcast by simply creating a post and inserting an mp3 file from my media library into it via the robust Add Media functionality of the post editor. However, I have found that the RSS feed created from these posts includes an enclosure for each mp3 file with its length attribute set to zero:

Add class to woocommerce checkout body based on filter

I am trying to add a class to a checkout page if the checkout contains a subscription renewal. Woocommerce provides wcs_cart_contains_renewal() to check. I am using this code but obviously missing something as it’s not working. $cart_items = wcs_cart_contains_renewal(); if ( ! empty( $cart_items ) ) { add_filter( 'body_class','my_body_classes' ); function my_body_classes( $classes ) { … Read more

Prevent WordPress from convert ✔ (& other text symbols/emoji) to SVG

In my page content, I have the following: <li><span class="tick">✔</span> Fully qualified and insured technicians, with over a decade of experience</li> On the frontend, WordPress changes the ✔ to: <img draggable="false" role="img" class="emoji" alt="✔" src="https://s.w.org/images/core/emoji/13.0.1/svg/2714.svg"> I can’t change the colour of this SVG image, it is black, and we need it white. How do I … Read more