Oops the code didn’t come out properly.
Here is the kind of menu links I need to implement in my wordpress menu :
<a href="javascript:void(0)" onClick="document.forms['rencMenu'].elements['page'].value='portrait';document.forms['rencMenu'].elements['id'].value='<?php echo $mid; ?>';document.forms['rencMenu'].submit();"><li <?php if (strstr($_SESSION['rencontre'],'portrait') && $_GET["id"]==$mid) echo 'class="current"'; ?>>Title</li></a>
I figured out that using # in wordpress menu via the admin works for the javascript part entering the function in the functions.php file but how do I do for the “if session” part ?
Thank you,
Lucile