ewsrobert
Forum Replies Created
-
Yes, all these sites are managed by our company. But they live on different servers and do not share login credentials.
@sueyrad, Do you have sites that are affected as well?
Forum: Plugins
In reply to: [Simple Sitemap - Create a Responsive HTML Sitemap] PHP v8.0 CompatibilityThank you!
OK. Thank you.
Forum: Developing with WordPress
In reply to: Creating custom setting in add media popupGot some assistance from another forum in addition to this. It spurred some brainstorming at the office and we came up with a solution. Not sure if this is the best way to resolve it but it is working as expected. I added this code:
delete_post_meta($id, 'add_class', true);
just above the:
return $html;
at the end of the last function and everything is behaving properly. If there is a better solution, please let me know.Forum: Developing with WordPress
In reply to: Creating custom setting in add media popup@bcworkz, I am afraid this is far too technical of an answer for me. The code above was provided in a post ( https://generatewp.com/snippet/rGEEo46/ ) on how to add classes to images and I have changed it to alter the html output as I needed. Nothing else was added or used but the supplied code above.
Is there something in the code I can change to get better or appropriate results for what I am after? Specific code alterations or additions to make it behave as expected?
So a clear example is: If I add a media item without checking that box, it inputs as normally WP would.
If I check the box, it outputs the modified version as I want it.
However, if I have checked the box and inserted image, then go back to add that image elsewhere and UNcheck the box, it still outputs the modified version, not the original WP output.
Everything works fine EXCEPT adding the image after it has been entered in its altered state. Then that image always gets input as the modified version and when I open up the Add Media popup it is still checked after I had unchecked it last time AND got the wrong html output(as I expected it to be).
So it does what I want with exception of it undoing what I want. I sadly don’t know PHP well enough to know how to trouble shoot it on my own.
Basically what I want is it to go back to default after inserting once, or, if I uncheck the box, after checking it and inserting it, it goes back to default. Either would be fine.
I greatly appreciate your response though as in other groups/forums, you are the first person in about a week to even respond at all.
Thank you!!!
Forum: Plugins
In reply to: [W3 Total Cache] Cache Preload Sitemap URLI saw a settings/set up post where the example image showed the guy using a relative url, but I also cannot find any verification that it works correctly. Have you confirmed that relative url’s are acceptable?