Removing \\\ from Saved Data

You can change the ” signs to " automatically using PHP’s htmlspecialchars() prior to your update_option() call: $post_client_template = htmlspecialchars( $post_client_template ); update_option( ‘contact_record_client_template’, $post_client_template); If you need to change ‘ characters as well, use this: $post_client_template = htmlspecialchars( $post_client_template, ENT_QUOTES ); update_option( ‘contact_record_client_template’, $post_client_template);

How to add “Template” option in page attributes panel?

If there is everything OK with your template file (it should be placed in root directory of your theme) and the comment is correct then there can be one more thing… There is/was some mysterious bug, that was preventing template select from appearing. You can read about this bug here: https://core.trac.wordpress.org/ticket/18324 It’s closed, because it … Read more

Can I have two different theme for two different language?

A WordPress Multi-site can handle multiple languages with individual themes and plugins activ. It’s like having multiple sites, one for every language, within one Installation. Every Site can have it’s own design, set of activ plugins and users. Read troth Method No. 5 on this Page for Details and Plugins that can help: http://codex.wordpress.org/Multilingual_WordPress

How to extend parent theme sections and settings to Options Tree

For anyone who want to achieve the same thing : add_filter( ot_settings_id() . ‘_args’, ‘my_ot_setting’); function my_ot_setting($custom_settings){ //do some work with the settings and the sections, ie append your settings. return $custom_settings; } This works if the parent theme applies this filter before saving the options like the example here : https://github.com/valendesigns/option-tree-theme/blob/master/inc/theme-options.php#L833 Otherwise you have … Read more

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