Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS][PHP]Zmienne Menu w Word Pressie
Arco
post
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 24.05.2011

Ostrzeżenie: (0%)
-----


Witam,
mam mały problem. Koduję stronę postawioną na wordpressie która ma 2 menu. Menu1 - górne z głównymi kategoriami, i menu2 - dolne poniżej head'a z powtórzoną góra i rozsuwanym podmenu z podkategoriami. Chciałbym zrobić tak by menu1 pozostało z głównymi kategoriami tak jak jest teraz, ale za to menu2 stało się menu podkategori (inne dla każdej podstrony z menu1). Jak to zrobićquestionmark.gif


Tutaj header.php z Wordpressa

Kod
> get_var("SELECT term_id FROM $wpdb->terms WHERE name='$featuredcat'"); $vidcat = get_option('woo_video_category'); // ID of the Video Category $GLOBALS[ex_vid] = $wpdb->get_var("SELECT term_id FROM $wpdb->terms WHERE name='$vidcat'"); ?>
1, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_id' => 'lavaLamp', 'theme_location' => 'primary-menu' ) ); } else { ?>
  * {/">Home}  
/">
" onclick="this.value='';" name="s" id="s" /> /styles//ico-go.gif" value="" class="btn" />
{/" title="">[<?php if ( get_option('woo_logo') <> ] "" ) { echo get_option('woo_logo'); } else { ?>/images/logo.gif" alt="" title="" />}
{"" ) { echo get_option('woo_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>">[ico-rss.gif]/images/ico-rss.gif" alt="" />}
  * {"" ) { echo get_option('woo_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>">}
  * {" target="_blank">}
3, 'sort_column' => 'menu_order', 'container' => 'ul', 'menu_class' => 'nav2', 'theme_location' => 'secondary-menu' ) ); } else { ?>









Arco

Ten post edytował Arco 24.05.2011, 19:58:44
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 01:58