Support for custom images folders
-
Hey Ajay,
I love Contextual Related Posts, it’s a great plugin, but I accidentally broke one site again when I updated because I forgot that I had to hack your plugin to accommodate that I use a different folder defined in my wp_config file for storing all images.
That site still has an old Theme that needs to be updated but I won’t get to it for a bit yet….it does use a custom field metakey to hold the image name (called Image, not post-image) and I’ve entered that in the plugin settings, but because the images are not in the usual media library or uploads, CRP doesn’t know where to find them.
SO in your plugin around line 798 I have to add the path to the image folder to the line for $new_pi, changing:
$new_pi = $postimage;
to
$new_pi = ‘https://myurl.com/images/’.$postimage;
In your next version, can you just add a setting for absolute URLs to images folders for those of us who don’t use the media library?
Many thanks,
Trisha
- The topic ‘Support for custom images folders’ is closed to new replies.