The entire wordpress theme reset to default after uploaded to live

Probably the problem is caused by 4. WordPress stores some data as serialized arrays. When you change the domains this data gets corrupted – read http://php.net/manual/en/function.serialize.php (Anatomy of a serialize()’ed value part will explain you everything). How to resolve it? Use https://wordpress.org/plugins/wp-migrate-db/ It will convert data correctly.

problem with get_option in dashboard

The problem is your value=”” attribute, for example <textarea value=”<iframe>”> is invalid HTML, and the browser will do its best to try and fix the markup. That’s why you’re getting strange results So instead, remove the value attribute. You’ll also want to escape with esc_textarea to prevent malicious code breaking out of the text area

Hide admin menu on update_option

OK, so you put your form in manu page callback and the code that is processing that form is also in that same function. And you register your manu pages on admin_menu hook. All of that means that when you process your form and change the value of your option, the menu is already registered. … Read more

Where does this field get its value?

That clearly is a plugin field of “Advanced Custom Fields”. The function: the_field(); is one of the utility functions of the plugin. The purpose of “Advanced Custom Fields” is to enable users with less coding-knowledge to add custom fields to a theme/template. So, in order to reverse engineer the whole thing, you propably need to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)