Basically, the sidebar widget Recent is not a well-behaved widget nor is WordPress in regards to relative URLs.
As far as the Recent widget is concerned, if you upload an image, even if it doesn’t go into a post or page, it uses the last image as the thumbnail. I have found no place where I can select the particular image I want to use for the thumbnail on the sidebar for any post or page. That in itself is a feature sadly lacking because I cannot edit the URL to include the ‘full’ URL which would ensure the sidebar thumbnails show on every page.
In addition, any URL that WordPress constructs with the SEF that has anything between the post or page name and the root URL, the thumbnail will not appear. The widgets and WordPress is inserting this into the URL for the images and, therefore, the thumbnails are not found and not displayed. That is bad. Bad logic and bad programming.
If I click the Recipes link on the navigation bar, it goes to the recipes page and the Recent sidebar thumbnails show.
https://www.dothanalabamamall.com/recipes
If you click any recipe link on the recipe page, WordPress will insert ‘recipes/’ in front of the SEF filename. The thumbnails for the Recent sidebar widget do not display on any page that has ‘anything’ between ‘https://www.dothanalabamamall.com’ and the SEF filename of the post or page. Here is an example:
https://www.dothanalabamamall.com/recipes/blanching-your-fresh-peas
In fact, this is how I noticed that even images inside a post shows a ‘valid’ relative URL but doesn’t display the image. I set all images but one to the absolute URL and on that page, the one image without the absolute URL displays no image. All others do, which you would expect.
Here is the HTML source for the one image that doesn’t show:
‘<img class=”size-thumbnail wp-image-1383 alignleft” title=”Cover peas with water and lid” src=”wp-content/uploads/2009/07/Cover_Peas_with_water_and_lid-150×150.jpg” alt=”Cover_Peas_with_water_and_lid” width=”150″ height=”150″ />’
In any CMS application I have used other than WordPress, that relative URL would work properly. In WordPress, it doesn’t. And this is the format of the image ‘src’ URL that WordPress inserts when you use the Visual Editor. For anyone to ‘have’ to go back into the HTML code to insert the root URL just to ensure the image shows is ‘horrible’.
So if anyone can tell me how I can get WordPress to recognize images as an extension of the root URL ‘https://www.dothanalabamamall.com/’ instead of ‘https://www.dothanalabamamall.com/recipes/’, I would really appreciate some feedback.
Other than that, I highly recommend to the WordPress development community that they set some ‘firm’ standards on relative URLs to ensure that they ‘always’ are appended to the root URL so images, documents, etc. can be found.