wrip
Forum Replies Created
-
Forum: Plugins
In reply to: [Database for Contact Form 7, WPforms, Elementor forms] Entries list is emptyTo clarify further, I am also using Contact Form 7 and Flamingo plugins. They are both working fine.
@vupdraft Thanks for letting me know. The screenshot I took was from the “Preload” tab. Next to the Run Now button, it shows the following information:
Last preload finished at 6:23 pm, 17 September 2025I wanted to completely remove the above preload cache information. I optimised database tables but that didn’t help.
My current WP-Optimize cache setting is as follows:
Enable page caching: On
"Automatically preload content after it is purged" checkbox: unticked
"Generate separate files for mobile devices" checkbox: unticked
"Serve cached pages to logged in users" checkbox: unticked
Cache lifespan: 8 hours@vupdraft I think I had tried doing that as well but didn’t work.
Anyway, I changed Cache lifespan value from 24 hours to
Cache lifespan: 8 hoursand removed the URLs (that I had initially added) from the exclusion list. This now seemed to have resolved the issue for me. It’s almost a week now and the dynamic AJAX calls are working fine.
My AJAX implementation had custom nonce. I think the cache lifespan of 24 hours had some conflict with the custom nonce. After reducing it to 8 hours, all seemed to be working well. I still haven’t set the automatic preload enabled. I might give that a try as well. I hope that won’t cause any issues.
Btw, my current settings are:
Enable page caching: On
"Automatically preload content after it is purged" checkbox: unticked
"Generate separate files for mobile devices" checkbox: unticked
"Serve cached pages to logged in users" checkbox: unticked
Cache lifespan: 24 hours
Gzip compression: Enabled
Browser static file caching headers: Enabled and expiration set to 5 days
Minify: Not enabledHi @deabiodun
Thanks for your reply. Let me just share some of the things I tried with some addition questions.
I tried exclusion rules like this:
/events/exhibitions/*
/events/expos/*When I did this, I noticed something isn’t working on the pages like this:
https://mysite.com/events/exhibitions/abc-arts/?location=all&av=yThese parameters are dynamic AJAX calls that get triggered by radio buttons or dropdown selections on the /events/exhibitions/abc-arts/ page. I noticed that after adding the above exclusion rules, the AJAX calls didn’t display any results when the radio/dropdown were selected. I then removed the exclusion rules. Then the AJAX calls seemed to be working fine.
The WPO comment on the /events/exhibitions/abc-arts/ page always showed the following comment when I directly visited this page or if I selected the radio or dropdown selections:
Cached by WP-Optimize (gzip) - https://teamupdraft.com/wp-optimize/ - Last modified: 1 October 2025 9:21 am ....When I select the radio or dropdown selections, the page url appends parameters without refreshing the entire page. Is this actually caching the AJAX calls?
However, if I directly visited the page with the parameters /events/exhibitions/abc-arts/?location=all&av=y, I saw the following comment:
WP Optimize page cache - https://teamupdraft.com/wp-optimize/ - Page not served from cacheIs this an expected behaviour?
Forum: Plugins
In reply to: [Redirection] Giving access to Editors to a specific group only@johnny5 I had a look at the developer page. It doesn’t look like I can grant permissions to the Editors to have access to only a certain group within the plugin. E.g. I created a group called “Temp Redirects” within the plugin. I want Editors to have access to this group only where they can add or delete redirections. Is this doable? I can’t see any specific Redirection permissions that allows me to do this.
@lopo Sorry for the late reply. That worked perfectly as expected. Thanks!
Thanks, will check this out!
Can someone from Yoast respond to this and let us know how to do this?
Forum: Developing with WordPress
In reply to: Uploading images to Media Library by URL via the API@alanfuller Yes, I’ve managed to resolve this using a custom endpoint.
@bcworkz All good now. I had been over-complicating the logic. Thanks for your tips.
@abretado1985 Simply registering the post type and taxonomy; and then re-saving the Permalinks did not automatically load the content on this URL:
https://www.example.com/books/arts/modern/sample-book/. This needed additional rewrite rules (see below) and permalink rewrites.@bcworkz Yes, I’ve managed to fix the issue by using the
add_rewrite_rule()function inside theinithook. I have a couple of questions in regards to the efficiency of the code.In my code, the rewrite rule includes nested
foreach()statements that generates several of these rewrite rules to captureparent/child hierarchical taxonomy termslike the following (there might be hundreds):https://www.example.com/books/arts/modern/sample-book/ https://www.example.com/books/arts/african/book-2/ https://www.example.com/books/arts/tattoo/needle-works/ https://www.example.com/books/comedy/classics/comedy-book-1/ https://www.example.com/books/crime/europe/crime-book-mafia/ https://www.example.com/books/crime/asia/crime-book-japan/ https://www.example.com/books/drama/classics/romeo-and-juliet/ https://www.example.com/books/drama/comedy/hello-world/ https://www.example.com/books/cars/classics/history-of-cars/This is the code:
function book_category_rewrite_rule() { $parent_terms = get_terms(...); // Get parent terms foreach( $parent_terms as $parent_term ) { $child_terms = get_terms(....); // Get child terms foreach( $child_terms as $child_term ) { add_rewrite_rule( '^books/' . $parent_term->slug.'/'.$child_term->slug . '/([a-z0-9-]+)[/]?$', 'index.php?books=$matches[1]', 'top' ); } } } add_action( 'init', 'book_category_rewrite_rule' );Does this always need to be fired from the
inithook or can this be fired from other hooks? I was wondering if this could potentially slow down the site if this gets fired on every page load.Forum: Fixing WordPress
In reply to: ‘Category’ page is showing 404My expectation is that
/news/category/by default should list all the categories or at least display something rather than returning “page not found”. It could just list the categories such as “development”, “design”, etc. Having a slug in a URL that returns “page not found” is just doesn’t seem right to me.Anyway, I’ve figured out a solution for this. I still don’t fully understand why this was not done by default.
Keeping with the same structure as the News in the example above, this is what I tested:
Under Dashboard > Pages:
I created a new Category page.
News (Posts Page) (/news/)
— Category (/news/category) – This tied up with page.php template (or page-category.php)Development (/development) – This tied up with page.php template
Under Dashboard > Categories:
Development (/news/category/development/) – This tied up with archive.php template
Under Dashboard > Posts:
Development (/news/development/) – This tied up with single.php template
This worked for me and had no conflict with anything. I also tried something similar with my CPTs. They are all working fine.
Forum: Plugins
In reply to: [Max Mega Menu] Pro version pre-sale questionsThanks Tom. I didn’t realise there was a demo menu on your site earlier.
I think that answers my questions.
Yes, it seems to have issues with PHP 8.
Looks like anything within the
count(...)function needs to add arraycount((array)...)I’ve already noticed this in
/admin/api_new.phpand/includes/functions.php.Could you fix this?