Keep salts when moving a site?

You should change them. Its good practice to periodically change your wordpress salts. It will not affect the passwords in the database but it will log out all users.

WordPress php error after editing file with FileZilla

It could be a problem with your file encoding. Make sure that your files are encoded in the same way as your wordpress install. In most cases your site use files encoded in UTF-8. Go to FileZilla options: Open Site Manager > Charset tab – Custom Encoding > and see if it’s UTF-8. When it’s … Read more

What’s the proper way to use wp_enqueue_script/style?

Do this at the head of your functions.php: define(‘PATH_TO_URL’, get_bloginfo(‘template_url’) . [path to your libraries, etc.]); Then, just call wp_enqueue_script(‘script’, PATH_TO_URL . ‘myscript.js’); or similar anywhere you want. If you change the location, just change the define() and it’ll update everywhere. Easy peasy.

Front end submit form with jquery form plugin

Leave the action value as blank. Give the submit button a name as name=”form_sub”. Then add the following code to your functions.php file. Check the codex for init hook. You can create a ‘Thank You’ page, or a confirmation page where the user should go after successful submission. <?php add_action(‘init’, ‘form_submit’); function form_submit(){ if(isset($_POST[‘form_sub’])) { … Read more