vider25
Forum Replies Created
-
Forum: Plugins
In reply to: [Multiple Category Selection Widget] Search Options for bedroomsAnd also one more thing,
Is it possible to auto reset after each search is submitted?
Thank you
Nevermind the message above..
I thought its my own topic..
I will post new topic now..
Sorry
Hi There,
First of all thanks for such a great plugin ??
I have one problem Im not able to solve..
What Im trying to do is to include property reference number in the form for each property.. Ive managed to get title of the property in form.. but I would like to include ref. number of the property as well..
So this is what I tried:
1.I have included this short code in the form:
[dynamictext reference “CF7_get_custom_field key=’ref_no'”]2.I have edit the code on to:
‘/* Insert a Custom Post Field
* New in 1.0.4
*/
function cf7_get_custom_field($atts){
extract(shortcode_atts(array(
‘key’ => ‘ref_no’,
‘post_id’ => -1,
‘obfuscate’ => ‘off’
), $atts));if($post_id < 0){
global $post;
if(isset($post)) $post_id = $post->ID;
}if($post_id < 0 || empty($key)) return ‘ref_no’;
$val = get_post_meta($post_id, $key, true);
if($obfuscate == ‘on’){
$val = cf7dtx_obfuscate($val);
}return $val;
}
add_shortcode(‘CF7_get_custom_field’, ‘cf7_get_custom_field’);’3.and I have included the code below in the property post.
‘<input type=”hidden” name=”ref_no” id=”ref_no” value=”LP48″ />’
Please let me know what Im doing wrong, and how it could be achieved.
Thank you
Regards
vider