New answers tagged

1

Your code worked absolutely fine for me, so I suspected you forgot to flush the rewrite rules. Each time after you added code which alters the WordPress rewrite rules, e.g. add_rewrite_rule() or code which registers/un-registers a CPT or custom taxonomy with URL rewriting enabled, you should always flush the rewrite rules which means WordPress will empty/...


0

Surely, it must be annoying when your website show that error message frequently. Please try these 2 possible solutions that you can try. Transient values: Some times transient values in the database increase the size of the database significantly. You can read about that in the link below. Also check how you can delete them and optimize your website : ...


0

I have been searching for an answer to this question for over a month now - i do not think wordpress is very good for any site that has a secure external DB or for anyone who does not want to store customer data in the main wordpress database, which is strange as that seems like a highly valued function. At any rate i came across this code during my ...


0

You can backup your WordPress website using UpdraftPlus plugin. Make sure you also backup database. After setup the WP on other laptop just upload the backup.


2

You won't be able to use the same database. If you do your going to have all sorts of problems. With the biggest problem being you cannot have two different values for the site URL. I would suggest a managed hosting solution such as Pantheon. This will provide you with a development, test, and live environment. All code updates are made in your development ...


0

I would look into DB connections issues. There is a specific number of DB connections allowed - a setting in the database config (don't recall which one) - and if there are too many connections, the next connection will fail. Contact your hosting place and ask them to increase the number of allowable database connections. It's a setting they have to make, ...


1

It is possible with MySQL, and it doesn't seem to create any problem with wordpress's dbDelta() Here is the line you need to change $charset_collate = $wpdb->get_charset_collate() . ' engine = innoDB'; You simply have to add engine = innoDB at the end of the SQL query and the correct engine will be used by MySQL


0

Try to rename the plugins folder to something like plugins-hold via FTP. Then try to access the admin area again.


0

Following worked for me when I tried to change the login url with a plugin called "Protect WP-Admin". after installing and activating I followed the instructions and tried to change the URL but it didn't work for me, even I was not able to login through usual login url. Then I followed below steps. Go to the Wordpress database that you mentioned during the ...


0

You can't just restore a backup? If not, this is the simplest thing I can think of... Sounds like you want to move all posts with category "Uncategorized" to a new category. You could do this with SQL but a quicker way might be to just change the name and slug of the uncategorized category. Go into the admin > Posts > Categories and hit the edit ...


1

Option 1: backup - Many hosts offer backups. Sometimes you have to pay for them, but often even when you do, they've actually been backing everything up and paying just allows you to access them. Worth checking as this will be fastest. Option 2: post listing screen - If these posts all had only 1 category, the one that was deleted, they'll be uncategorized ...


Top 50 recent answers are included