Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/09/2009, 17:46
Aresrroin
 
Fecha de Ingreso: mayo-2009
Mensajes: 27
Antigüedad: 15 años
Puntos: 0
Ocultar páginas en el menu de navegación

Hola quiero hacer páginas ocultas en mi blog, pero no consigo la manera. He probado mil y un plugin designados para esa tarea, además he probado el modificar código como aparece en alguna web, pero todo esto sin resultado.
¿Puede que tenga algo que ver la siguiente función que he encontrado en el archivo functions.php?

Código:
function wp_list_pages2() {

	check_header();
	
	$defaults = array('depth' => 0, 'show_date' => '', 'date_format' => get_option('date_format'),
		'child_of' => 0, 'exclude' => '', 'title_li' =>'', 'echo' => 1, 'authors' => '', 'sort_column' => 'menu_order, post_title');
	$r = array_merge($defaults, $r);

	$output = '';
	$current_page = 0;

	// sanitize, mostly to keep spaces out
	$r['exclude'] = preg_replace('[^0-9,]', '', $r['exclude']);

	// Allow plugins to filter an array of excluded pages
	$r['exclude'] = implode(',', apply_filters('wp_list_pages_excludes', explode(',', $r['exclude'])));

	// Query pages.
	$pages = get_pages($r);

	if ( !empty($pages) ) {

		for($i=0;$i<count($pages);$i++)
		{
			$output .='<td class="menu">
							<a href="?page_id='.$pages[$i]->ID.'">'.$pages[$i]->post_title.'</a>
						</td>
						<td class="m_sep">&nbsp;</td>';
		}
	}

	$output = apply_filters('wp_list_pages', $output);

	echo $output;
}

Gracias