Using Transients

I have set set_transient( ‘pgggo_acf_list_transient’, $pgggo_qry, 12 * 7000 ); is that too high? 12 * 7000 is just over 23 hours. Whether or not that’s too high (or low) depends entirely on your specific needs. The expiry time should be based on how often the data needs to be refreshed. What if there is … Read more

Saving data from custom form in wordpress database

You’re checking isset( $_POST[‘SUBMIT’] ), but there’s no field with that name. If you mean to be checking the submit button, you need to give it a name attribute with the right value: <input type=”submit” name=”SUBMIT” value=”SUBMIT”> Now isset( $_POST[‘SUBMIT’] will be true, and your code will run. Also, you don’t seem to be using … Read more

Global__r connection timed out

You’re getting this because HyperDB cannot reach one of your database servers. It might be down, unresponsive, or unreachable. You’ll need to check on the servers themselves to find out what the issue is.

Transferring/Uploading Data from DB to WordPress

Since you are building the scraping functionality outside of WordPress, you will have to use a way that allows you to add contents to WordPress from the outside as well. I basically see three options: Update via the REST API – Using the REST API you can post updates to the WordPress contents. You can … Read more

Clear Terms from Taxonomy for Specific Post IDs?

So if you’re sure you want to delete the actual term as well as the relationship that assigns the term to the post, this will do it (tested and works for me): delete term from wpterm_taxonomy term, wpterm_relationships rel where term.term_taxonomy_id = rel.term_taxonomy_id and rel.object_id IN (1) ; And obviously replace the ‘1’ there with … Read more

Problem migrating to localhost

As in this question and answer, and because of your huge .htaccess file it’s like you have a .htaccess directive that’s causing your apache to not process that file or understand its type. As mentioned by @Rup, using the default WordPress .htaccess, and checking other directories for rogue .htaccess files will likely resolve this issue. … Read more