soao
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to exlude some pages in the nav. menu ??Maybe a little workaround will help. I’ve had the same problem.
A page i dont want to show in the navigation menu at my home page and no plugin could help, because my theme uses the special code. Well, I did the following steps:1. Make it private
Set the status of your page to “private”. The page should disapear in the main-navigation.2. Make your private page visible
The problem is, that only you can see your private page. to make it visibible for everyone, install an activate the role manager plugin: linkNow, activate the option “view private pages” for every role. The private site is now visible for every visitor of your blog.
3. Hide the “private” status in the headline
The word Private is shown in the headline of the page. To make it disapear just copy and paste the following code to the functions.php in your theme.<?php /* Plugin Name: CyTBRemovePrivatePrefix Version: 0.1 Plugin URI: www.cywhale.de Description: Entfernt 'Privat: '-Prefix von Beitragstiteln Author: Cywhale Author URI: www.cywhale.de Min WP Version: 2.3 Max WP Version: 2.6 */ /* * Filterfunktion für the_title * Entfernt 'Privat:' oder 'Private:' Prefixe von Beitragstiteln * @param string $title, Beitragstitel * @return string, Umgewandelter Titel */ function cyTB_removePrivate($title) { return(preg_replace( '=^(Privat|Private)\:[\ +]=','', $title)); } // Filter anmelden add_filter('the_title','cyTB_removePrivate'); ?>
This should work fine for you.