Modify URL Path to Thumbnails?
-
We have some bad meta data on our site. CRP is using this bad metadata to generate the thumbnail images for each post. As a result I am seeing lots of broken images. This is due to some legacy data that was imported. This is how this problem is addressed in functions.php for the legacy posts so that the images show correctly.
$content = str_replace( ‘src=”/pubs/images/’, ‘src=”‘ . get_site_url() . ‘/images/pubs/’, $content );
How do apply this fix to CRP? I need to search and replace the bad thumbnail URLs. I was flailing around trying to modify the output-generator.php to get it to apply the same principle to the $output without any success.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Modify URL Path to Thumbnails?’ is closed to new replies.