error establishing database connection (WAMP + filezilla)

If everything is normal ( i.e., web server is working, ) you should care for only following things when creating new wordpress site. define(‘DB_NAME’, ‘db_name’); /** MySQL database username */ define(‘DB_USER’, ‘user_name’); /** MySQL database password */ define(‘DB_PASSWORD’, ‘db_password’); /** MySQL hostname */ define(‘DB_HOST’, ‘localhost’); db_name : name of the database that will hold your … Read more

How to replicate data storage and querying using WordPress. Custom posts/fields or Custom db tables?

This question is too broad for a concise answer but generally speaking I’d recommend: A custom post type Custom taxonomies (for grouping) Custom fields for arbitrary data (a plugin like Advanced Custom Fields will save a lot of time) You can query by both the taxonomy & custom fields using tax & meta queries. There’s … Read more

WP website showing blank page after moving from subdomain to main domain

you need to see below post to move word-press site one server to other Ref :- WordPress link some simple steps follow and change site location you can update your database using following queries UPDATE wp_options SET option_value = replace(option_value, ‘https://www.oldurl’, ‘https://www.newurl’) WHERE option_name=”home” OR option_name=”siteurl”; UPDATE wp_posts SET guid = replace(guid, ‘https://www.oldurl’,’https://www.newurl’); UPDATE wp_posts … Read more

WordPress Database Cleanup

WP is designed to use a single database. In fact you can have several sites in a single database because they’d each use a different table prefix. How difficult it’ll be to cleanup will depend on the code involved. I’d be mostly concerned that since the previous developer (I use the term loosely) didn’t use … Read more

custom search query database in child theme

The text input names don’t match the $_POST keys you are looping. Using [] in the input name attribute is for handling multiple inputs, not multiple keys. Try replacing name=”search[batch_no]” and name=”search[rfid_chip_no]” with simply name=”search_batch_no” and name=”search_rfid_chip_no” and looping $_POST instead of $_POST[“search”]. Also you need to check the conditions match, as only code and … Read more