Ecco quello che intendevo. Ci sono forse errori perché non posso testare ma l'idea era questa.

Codice PHP:
 <?php
 $url 
'http://miosito.com/content/?page_id=|id|&parametro1=' get_post_meta($post->ID'customfield_parametro1'true) . '&parametro2='get_post_meta($post->ID'customfield_parametro2'true) . '&parametro3='get_post_meta($post->ID'customfield_parametro3'true) . '&parametro4='get_post_meta($post->ID'customfield_parametro4'true) . '&title='get_the_title();
 
 
$alberto str_replace('|id|','76',$url).'&parametro5='get_post_meta($post->ID'customfield_parametro5'true) ;
 
$barbara str_replace('|id|','81',$url); 
 
?>
Codice PHP:
 <?php
 $codice 
=  "<script>function |custom_field| ?>_|kind|() {
 if ((italian || french || german) && (!android && !blackberry && !iphone && !ipad && !ipod && !nokia && !webos))
 { window.open('|url|'+(
 (italian && '&parametroX=it-1') || (french && '&parametroX=fr-1') || (german && '&parametroX=de-1') ));}
 else if ((italian || french || german) && (android || blackberry || iphone || ipad || ipod || nokia || webos))
 { window.open('|url|'+(
 (italian && '&parametroX=it-2') || (french && '&parametroX=fr-2') || (german && '&parametroX=de-2') ));}
 else if ((!italian && !french && !german) && (android || blackberry || iphone || ipad || ipod || nokia || webos))
 { window.open('|url|&parametroX=en-2');}
 else {window.open('|url|&parametroX=en-1');}
 }</script>"
;
 
 
// alberto
 
print str_replace(array('|custom_field|','|url|','|kind|'),array(get_post_meta($post->ID'customfield_parametro1_shortcode'true),$alberto,'video'),$codice);
 
// barbara
 
print str_replace(array('|custom_field|','|url|','|kind|'),array(get_post_meta($post->ID'customfield_parametro1_shortcode'true),$barbara,'photo'),$codice);