Hi, I tried to add a list of static page in the header menu like the footer menu, I add to header.php file the following code
<ul id="header-nav">
<li><a href="<?php echo osc_contact_url(); ?>"><?php _e('Contact', 'realestate') ; ?></a></li>
<?php osc_reset_static_pages() ;
$i = 1;
while( osc_has_static_pages() ) {
$last = '';
if($i == osc_count_static_pages()){
$last = 'class="last"';
}
?>
<li <?php echo $last; ?>><a href="<?php echo osc_static_page_url() ; ?>"><?php echo osc_static_page_title() ; ?></a></li>
<?php
$i++;
}
?>
</ul>
The result is that the pages are listed but when I go to the page, the content is not visible. If I remove that code in the header and i use the links for pages in the footer, I see pages correctly
Any idea?