Customize cover image path
-
Our site is maintained on a development server (http://development.sub.domain.com/site-name/) and pushed out to a production server (http://www.domain.com/site-name/), all of the paths with Seriously Simple Podcasting update on the feed for iTunes correctly with the production url except for the cover image which we just changed last week.
Here is the line from the feed:
<itunes:image href=”http://development.sub.domain.com/site-name/wp-content/uploads/2017/04/cover-image-file-name.jpg”/>
First thing I notice is that the image tag is not closed, not sure why it isn’t when all other tags close.
Second, the path should be:
http://www.domain.com/site-name/wp-content/uploads/2017/04/cover-image-file-name.jpg
Is there a way to hard code the image path, I did try modifying the feed-podcast.php file with the full path to the image, but that did not work, so I reverted back to:
<itunes:image href=”<?php echo esc_url( $image ); ?>”></itunes:image>
That does have the closing image tag which is no longer displayed on my feed. What am I doing wrong, and how can I set the image? Thank you
The topic ‘Customize cover image path’ is closed to new replies.