Forums

Creating a page but not having a link in the navigation (4 posts)

  1. shorn
    Member
    Posted 5 years ago #

    Looking for some assistance. I am aware that you can create a "page" in wordpress, such as the about page, but this automatically create a link to it in the navigation. What I want to do is create a static page without the link in the navigation. Hopefully the page can be created like (www.mywordpressblog/page) and i can then add a link to it from within my template.

    Any ideas?

  2. alainS
    Member
    Posted 5 years ago #

  3. shorn
    Member
    Posted 5 years ago #

    Thanks for th ereply, however im having some trouble implementing it, this is where my list pages php is

    function getNav(){
    	 echo str_replace(array("<ul>","</ul>","<li class=\"page_item\">","<li class=\"page_item current_page_item\">","</li>"),"",wp_list_pages('depth=-1&echo=0&title_li='));
    }

    And i want to exclude page ID 12, any ideas on the correcting editing of this line?

  4. shorn
    Member
    Posted 5 years ago #

    nevermind, its done now!! thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags