Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • looks like you were right this was surrounding code.

    Thank you!

    sorry – and thanx much for the quick response – I took out the exclude I was using to try and simplify things – which was not as intelligent =|

    <ul id="dropmenu">
    <?php wp_list_pages('exclude=' . get_page_by_title('Privacy Policy') -> ID . '&sort_column=menu_order&title_li='); ?>
    </ul>

    the exclude is working – but somehow leaves an open tag I think? I found this – not sure if it pertains to my situation:

    link

    Here is what the above outputs:

    <ul id="dropmenu">
    <li class="page_item page-item-5 current_page_item"><a href="https://www.por7al.com/wp_excelone/" title="Home">Home</a></li>
    <li class="page_item page-item-6"><a href="https://www.por7al.com/wp_excelone/?page_id=6" title="Our Perspective">Our Perspective</a></li>
    <li class="page_item page-item-7"><a href="https://www.por7al.com/wp_excelone/?page_id=7" title="Services">Services</a>
    <ul>
    	<li class="page_item page-item-8"><a href="https://www.por7al.com/wp_excelone/?page_id=8" title="Individual">Individual</a></li>
    	<li class="page_item page-item-9"><a href="https://www.por7al.com/wp_excelone/?page_id=9" title="Small Business">Small Business</a>
    	<ul>
    		<li class="page_item page-item-23"><a href="https://www.por7al.com/wp_excelone/?page_id=23" title="Business Advantage">Business Advantage</a></li>
    	</ul>
    </li>
    	<li class="page_item page-item-11"><a href="https://www.por7al.com/wp_excelone/?page_id=11" title="Corporations">Corporations</a></li>
    </ul>
    </li>
    <li class="page_item page-item-15"><a href="https://www.por7al.com/wp_excelone/?page_id=15" title="Markets">Markets</a>
    <ul>
    	<li class="page_item page-item-274"><a href="https://www.por7al.com/wp_excelone/?page_id=274" title="Emerging Markets">Emerging Markets</a></li>
    	<li class="page_item page-item-287"><a href="https://www.por7al.com/wp_excelone/?page_id=287" title="Developed Markets">Developed Markets</a></li>
    </ul>
    </li>
    <li class="page_item page-item-13"><a href="https://www.por7al.com/wp_excelone/?page_id=13" title="Team">Team</a>
    <ul>
    	<li class="page_item page-item-329"><a href="https://www.por7al.com/wp_excelone/?page_id=329" title="Careers">Careers</a></li>
    </ul>
    </li>
    <li class="page_item page-item-314"><a href="https://www.por7al.com/wp_excelone/?page_id=314" title="Process">Process</a>
    <ul>
    	<li class="page_item page-item-309"><a href="https://www.por7al.com/wp_excelone/?page_id=309" title="Performance">Performance</a></li>
    </ul>
    </li>
    <li class="page_item page-item-21"><a href="https://www.por7al.com/wp_excelone/?page_id=21" title="Contact">Contact</a></li>
    <li class="page_item page-item-17"><a href="https://www.por7al.com/wp_excelone/?page_id=17" title="Blog">Blog</a></li>
    </ul>

    Well I will give it a day or two and if no answer – post again.

    As far as context – I am using it to list the menu items.

    <ul id="dropmenu">
    <?php wp_list_pages('&sort_column=menu_order&title_li='); ?>
    </ul>

    anyone else on this? I have been trying to track down a solution to this for a while…

    how did you resolve this?

    wp_list_pages isn’t validating for me.

    Thread Starter gregremote

    (@gregremote)

    https://www.ads-software.com/support/topic/296283?replies=6

    thanks much for this post – solved my situation exactly. I was also able to set a style for current_page_parent – so the parent has one style the child another.

    Thread Starter gregremote

    (@gregremote)

    Hey thank you for that!

    I didn’t realize that current page was included in the class description.

    To achieve what I was looking for in my case was to add current_page_item to my hover class. I suppose you could have different styling for hover and current_page_item too.

    from:
    #dropmenu a:hover {

    to:
    #dropmenu .current_page_item a, .current_page_item a:hover {

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