John Webber
Forum Replies Created
-
Forum: Plugins
In reply to: [Gutenberg] Straight single quotes are replaced by a smart (curly) quotesHi @janmtm
Yes, I did share the screenshots. Not sure what happened to them. So, I made some new ones.
The text in the editor with the correct single quote.
The text in on the frontend has a different quote, a symbol which my font does not have.
The source code:
Left side — Editor
Right side — FrontendThank you for looking into this ????
Hi nosilver4u,
You’re right. All your points are valid. I understand completely.
Thank you for responding so quickly, and with such a thorough answer.
Have a great day!
Forum: Plugins
In reply to: [VS Contact Form] Please allow a better auto-response messageThank you Guido!
Looking forward to the block
Jovan
Forum: Plugins
In reply to: [VS Contact Form] Please allow a better auto-response messageHi,
Oh, right, one email is the conformation for the sender, and the other for the admin.
You, know what would be great, also? A checkbox for the user to consent to getting the newsletter. Then the plugin would collect the user’s email and name in a list, that the admin would copy/paste to the mailing list.
Having them fill out the contact form, the newsletter form, and maybe even the ordering form, is asking for too much
Think about it. Would be amazing
Thank you
JohnForum: Plugins
In reply to: [VS Contact Form] Please allow a better auto-response messageHi Guido,
Thank you for updating the plugin. The text area is working as expected.
But, there are some unexpected quirks.1) Two conformation emails are sent:
One that contains the message and what the user wrote:And another one that contains only what the user wrote:
Here you can see that I got two emails at the same time
2) The conformation message on the page is not wrapped in the existing class
So, my styling for ‘vscf-info’ was not applied to the conformation message.
John
Forum: Plugins
In reply to: [VS Contact Form] Please allow a better auto-response messageThank you Guido
Really appreciate thatJohn
I remembered one more thing, and may add more if I think of any…
- The code editor needs a JS library that notifies me of incorrect PHP and JS syntax
Forum: Plugins
In reply to: [Breeze - WordPress Cache Plugin] Programmatically clear cache by post IDDoes the cache of that single post get purged if you edit, or just save it?
Forum: Plugins
In reply to: [Breeze - WordPress Cache Plugin] Page cache does not seem to workDid you find a solution?
- This reply was modified 11 months, 2 weeks ago by John Webber.
Forum: Plugins
In reply to: [Breeze - WordPress Cache Plugin] Programmatically clear cache by post IDDid you find a solution?
- This reply was modified 11 months, 2 weeks ago by John Webber.
Forum: Plugins
In reply to: [WP Super Cache] Prevent Caching On First OpenHi @donncha, @tamirat22
I guess I missed the email about your response.
My initial question was not what I actually need. I’m lookin to not cache only the page we are on, on first open. I did find a solution that works with most plugins.
Tested it with your plugin. Works well.
Thank you!
add_action('send_headers', 'combined_cache_control'); function combined_cache_control() { global $post; // Check if we are on a post page and the post has a cache prevention flag if (is_a($post, 'WP_Post')) { $prevent_cache = get_post_meta($post->ID, '_prevent_cache', true); if ($prevent_cache) { // Send headers to prevent caching header("Cache-Control: no-cache, must-revalidate, max-age=0"); header("Pragma: no-cache"); header("Expires: Wed, 11 Jan 1984 05:00:00 GMT"); // Also prevent caching using WordPress constants if available if (!defined('DONOTCACHEPAGE')) { define('DONOTCACHEPAGE', true); } } } } add_action('save_post', 'set_prevent_cache_flag'); function set_prevent_cache_flag($post_id) { // Set the flag when a post is saved update_post_meta($post_id, '_prevent_cache', '1'); }
- This reply was modified 12 months ago by John Webber.
Hi @wpmudev-support
You are right. My initial code and question were not in fact what I needed.
Thank you for your help. This is the solution I require.Best regards,
JovanForum: Plugins
In reply to: [WP Fastest Cache] Prevent Caching On First OpenHi, @emrevona
Thank you for your answer
I found a solution, but did not test with your plugin
Defining the DONOTCACHEPAGE constant for a specific page works for most caching plugins. Maybe it works for yours as well
And if it doesn’t, you should update it to respect this standard
Thanks,
JohnHi, Mane
I found a solution, but did not test with your plugin
Defining the DONOTCACHEPAGE constant for a specific page works for most caching plugins. Maybe it works for yours as well
And if it doesn’t, you should update it to respect this standard
Thanks,
JohnThank you for your answer
I found a solution, but did not test with your plugin
Defining the DONOTCACHEPAGE constant for a specific page works for most caching plugins. Maybe it works for yours as well
And if it doesn’t, you should update it to respect this standard
Thanks,
John