Title: chryaner's Replies | WordPress.org

---

# chryaner

  [  ](https://wordpress.org/support/users/chryaner/)

 *   [Profile](https://wordpress.org/support/users/chryaner/)
 *   [Topics Started](https://wordpress.org/support/users/chryaner/topics/)
 *   [Replies Created](https://wordpress.org/support/users/chryaner/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/chryaner/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/chryaner/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/chryaner/engagements/)
 *   [Favorites](https://wordpress.org/support/users/chryaner/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Meta Manager] query through custom meta key and value](https://wordpress.org/support/topic/query-through-custom-meta-key-and-value/)
 *  Thread Starter [chryaner](https://wordpress.org/support/users/chryaner/)
 * (@chryaner)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/query-through-custom-meta-key-and-value/#post-4620918)
 * Small fix –
 *     ```
       $department = unserialize($_user->meta_value);
       ```
   
 * Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugine: Contact Form 7] mandatory drop-down-menu with watermark](https://wordpress.org/support/topic/plugine-contact-form-7-mandatory-drop-down-menu-with-watermark/)
 *  Thread Starter [chryaner](https://wordpress.org/support/users/chryaner/)
 * (@chryaner)
 * [13 years ago](https://wordpress.org/support/topic/plugine-contact-form-7-mandatory-drop-down-menu-with-watermark/#post-3159709)
 * Hey dhavaljani
 * There is a problem with regex, try to play around with the expression
    If you
   wont figure it out ill thinl about the right expression for you Im lack of time
   right now
 * This is my mail if you got any questions
    [Chryaner@gmail.com](https://wordpress.org/support/users/chryaner/replies/Chryaner@gmail.com?output_format=md)
 * Iliya
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] WPML and Contact Form 7](https://wordpress.org/support/topic/wpml-and-contact-form-7/)
 *  Thread Starter [chryaner](https://wordpress.org/support/users/chryaner/)
 * (@chryaner)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/wpml-and-contact-form-7/#post-3481236)
 * Hey Takayuki Miyoshi,
 * In my form, the watermark and the strings I’ve added are not translating, like“
   Subject”, “Message”. only the “Send” button is translated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] WPML and Contact Form 7](https://wordpress.org/support/topic/wpml-and-contact-form-7/)
 *  Thread Starter [chryaner](https://wordpress.org/support/users/chryaner/)
 * (@chryaner)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/wpml-and-contact-form-7/#post-3481202)
 * Hey Takayuki Miyoshi,
 * First thing I want to say is that I really appreciate your work!
 * Second, let me explain what is my problem.
    I came here after reading this document:
   [http://wpml.org/documentation/support/translation-for-texts-by-other-plugins-and-themes/how-to-use-contact-form-7-in-multilingual-websites/](http://wpml.org/documentation/support/translation-for-texts-by-other-plugins-and-themes/how-to-use-contact-form-7-in-multilingual-websites/)
 * and after failing using the “icl” tag in your cf7 short tags, i turned to the
   web to seek after the answer of “how do I get CF7 and WPML work together” and
   I didn’t find a direct answer.
 * What do you suggest me to do?
    instead of creating a contact form for every language
   in my site (there is 9 language now), i want to make the watermark/string in 
   my CF7 field translatable, is that possible?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Using Page Navigation with custom time based query](https://wordpress.org/support/topic/using-page-navigation-with-custom-time-based-query/)
 *  [chryaner](https://wordpress.org/support/users/chryaner/)
 * (@chryaner)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/using-page-navigation-with-custom-time-based-query/#post-2476594)
 * Hey Christophe
 * Did you manage to fix this problem?
 * Iliya
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugine: Contact Form 7] mandatory drop-down-menu with watermark](https://wordpress.org/support/topic/plugine-contact-form-7-mandatory-drop-down-menu-with-watermark/)
 *  Thread Starter [chryaner](https://wordpress.org/support/users/chryaner/)
 * (@chryaner)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugine-contact-form-7-mandatory-drop-down-menu-with-watermark/#post-3159697)
 * Hi Akhilesh,
 * Use this to change each CF7 element individuality
 *     ```
       function my_wpcf7_form_elements($html) {
       	ov3rfly_replace_include_blank('cf7_element_name', 'you_watermark', $html);
       	ov3rfly_replace_include_blank('cf7_element_name', 'another_watermark', $html);
       	return $html;
       }
   
       add_filter('wpcf7_form_elements', 'my_wpcf7_form_elements');
   
       function ov3rfly_replace_include_blank($name, $text, &$html) {
   
       		$matches = false;
       		preg_match('/<select name="' . $name . '"[^>]*>(.*)<\/select>/iU', $html, $matches);
   
       		if ($matches) {
       		$select = str_replace('<option value="">---</option>', '<option value="">' . $text . '</option>', $matches[0]);
   
       		$html = preg_replace('/<select name="' . $name . '"[^>]*>(.*)<\/select>/iU', $select, $html);
   
       		}
       	}
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] [Plugin: Contact Form 7] Set include_blank value diff than —](https://wordpress.org/support/topic/plugin-contact-form-7-set-include_blank-value-diff-than/)
 *  [chryaner](https://wordpress.org/support/users/chryaner/)
 * (@chryaner)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-set-include_blank-value-diff-than/#post-2473964)
 * I managed to fix this by taking the “ov3rfly_replace_include_blank”
    function
   out of the “my_wpcf7_form_elements” function
 * there is no reason to place a function inside function in this case.
 * hope that will be helpful for someone one day.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] [Plugin: Contact Form 7] Set include_blank value diff than —](https://wordpress.org/support/topic/plugin-contact-form-7-set-include_blank-value-diff-than/)
 *  [chryaner](https://wordpress.org/support/users/chryaner/)
 * (@chryaner)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-contact-form-7-set-include_blank-value-diff-than/#post-2473963)
 * Hey Ov3rfly,
    Thanks for your help.
 * Im using your script to change the “—” in my form, but when im trying to put 
   two form in the same page, im getting the message-
    `Fatal error: Cannot redeclare
   ov3rfly_replace_include_blank() (previously declared in /home/orkbu/domains/gil.
   beastserv.com/public_html/hava/wp-content/themes/theme951/GetresForm.php:115)
   in /home/orkbu/domains/gil.beastserv.com/public_html/hava/wp-content/themes/theme951/
   GetresForm.php on line 115`
 * how can i overcome this issue?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugine: Contact Form 7] mandatory drop-down-menu with watermark](https://wordpress.org/support/topic/plugine-contact-form-7-mandatory-drop-down-menu-with-watermark/)
 *  Thread Starter [chryaner](https://wordpress.org/support/users/chryaner/)
 * (@chryaner)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugine-contact-form-7-mandatory-drop-down-menu-with-watermark/#post-3159577)
 * found a solution after long searching
    [](http://wordpress.org/support/topic/plugin-contact-form-7-set-include_blank-value-diff-than-?replies=4)

Viewing 9 replies - 1 through 9 (of 9 total)