remove href from wp_list_pages

Posted on 2009-02-20
Last Modified: 2013-11-05
i am trying to remove a hyperlink from wp_list_pages, but only from the first ul in the heirachy. i want the sub pages to be displayed as links and the first level to be text. is it possible to do this with the wp_list_pages function? doesnt matter how this is achieved, it just needs to be dynamic. thanks for your help
<!-- generated list output-->

<ul id="nav2">

<li class="page_item page-item-74"><a href="" title="Community">Community</a><!--make community plain text no link-->


	<li class="page_item page-item-87"><a href="" title="Activities">Activities</a></li>

	<li class="page_item page-item-101"><a href="" title="Campus Map">Campus Map</a></li>

	<li class="page_item page-item-99"><a href="" title="Dining">Dining</a></li>

	<li class="page_item page-item-79"><a href="" title="Transportation">Transportation</a></li>



<li class="page_item page-item-108"><a href="" title="Information">Information</a><!--make information plain text no link and so on...-->


	<li class="page_item page-item-112"><a href="" title="Newsletters">Newsletters</a></li>

	<li class="page_item page-item-110"><a href="" title="T.V. Listings">T.V. Listings</a></li>



<li class="page_item page-item-104"><a href="" title="Services">Services</a>


      <li class="page_item page-item-106"><a href="" title="Resident Computer Services">Resident Computer Services</a></li>




Open in new window

Question by:thtate
    LVL 15

    Accepted Solution


    Author Closing Comment

    Great! Just what i was looking for, thanks!
    LVL 15

    Expert Comment

    thanks for the point

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Did you use a default hosting installation of wordpress with the intention of it being your actual site?  Maybe you’ve installed it as a Blog to your current site and recently converted it to be the main site and do away with the old .htm pages.  An…
    Who says nothing in life is free? is a freebie.'s downloadable publishing platform is free. Heck, even WordPressMU is free. WordPress is an open source project, which means it can be used on any personal or commerc…
    The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: : Open Page or Post…
    This video teaches users how to migrate an existing Wordpress website to a new domain.

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now