firewall Spyware removal internet speed test web security service free software and tips


Go Back   Web Security > Special > Wordpress
FAQ Members List Search Today's Posts Mark Forums Read

Wordpress Wordpress installations, themes and mods.

Advertisements

Remove Static page in Menu - Wordpress

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-30-2007,
AMPC's Avatar
Administrator
 
Join Date: Jan 2007
Posts: 1,415
Default Remove Static page in Menu - Wordpress

Wordpress now has a cool option that allows you to make one of the pages a static front page so that your site's main look is always the same. However; in your menu, that page will show up when really, it shouldn't! If it does, you end up with two links to your main page and wasted real estate for your menu.

The solution, find (usually in the header) the
Code:
wp_list_pages('sort_column=post_date&depth=1&offset=1&title_li=');
and replace it with
Code:
$tmpexclude =  get_option('page_on_front');
$tmpline = 'sort_column=menu_order&depth=1&title_li=&exclude=' . $tmpexclude;
wp_list_pages($tmpline);
That should eliminate the duplicate
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is .


Powered by a CPU
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.3.2 © 2009, Crawlability, Inc.