Excluding a page of your blog WordPress
Categories: Wordpress
Send article
Print Article
For a lot of different reasons, it may be interesting to hide a page on your blog WordPress. Thus, through the addition of a piece code very simple to use, you can choose to exclude pages of your choice and prevent it will not appear in the navigation bar provided. This manipulation does not mean that the pages (s) does not remain accessible via the browser but they are just invisible from the list of pages available.
First, you connect to the hotel of your blog WordPress. Then, visit the editor subject under the Appearance tab.
We will in fact intervene in the theme of this blog means that you will repeat the operation if you intend to change topic graph.
Look now the code snippet:
<? php wp_list_pages ( 'title_li =');>
To search more efficient, not selected as <? Php wp_list_pages
then use the Ctrl + F browser. I advise you to use Firefox that allows you to search instanément when you enter the first few characters.
The location of the code below differs according to the theme used. Everything depends, in fact, where are listed pages on the subject (at the top, side, etc.).. In the standard theme (K2) WordPress, you will find in the sidebar.php file, french, Column side.
Once you have located the code in question, replace it with this:
<? php wp_list_pages ( 'exclude = 1,2,3 & title_li =');>
The numbers are simply the IDs of pages that you can identify using the Pages tab Manage WordPress.
In the list of pages, pass the mouse over the link Published on the Status column for the page you want to exclude. Have a look in the browser's status bar and then identify the page number.
See the latter in the previous code. You can exclude as many pages you want while separated by commas.
Finally, open the page of your blog and then make sure the pages (s) to exclude are now hidden in the navigation bar.



























June 30, 2008 at 7:18
Sympa this little tutorial, you should make others with other parameters wp_list_pages () and wp_list_categories (), which operate virtually the same.
With respect to these two functions, I wrote an article about Hack Wordpress who spoke.
July 1, 2008 at 6:36
Yes it is always useful to know these little tricks in wordpress. it serves little to blogs (though) but for specific uses wordpress is very useful!
I do not know you, but I Wordpress makes me more and more think of a framework in fact…. Wordpress, + a CMS?

July 4, 2008 at 12:33
@ redpeppers: very useful especially as are simple things that were often difficult to find on the Net
WordPress, + a CMS? This is an issue that deserves to discuss it for several hours…