Welcome To Snipplr
Everyone's Recent Snippets Tagged category
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
[register_nav_menus](http://codex.wordpress.org/Function_Reference/register_nav_menus,"register_nav_menus")
[wp_nav_menu](http://codex.wordpress.org/Function_Reference/wp_nav_menu,"wp_nav_menu")
[in_category](http://codex.wordpress.org/Function_Ref...
        
        
        
            0 
        
        
            1437 
        
                    posted 12 years ago by hell0world
            Get Wordpress wp_get_archives for a specific category... by default it sghows all categorys
        
        
        
            0 
        
        
            2963 
        
                    posted 13 years ago by i-am-andy
            Just insert any category id into the argument and it will return the top level category object.
e.g: print_r( get_top_level_category('INSERT CATEGORY ID HERE') );
        
        
        
            0 
        
        
            1652 
        
                    posted 14 years ago by djmosc
            This snippet will help you to use the mother category, the ones with parent => 0, as your classes ready to be stylezed in your CSS!
        
        
        
            0 
        
        
            1536 
        
                    posted 14 years ago by Pr0v4
            Как Ñделать вывод из неÑкольких таблиц (php mysql)
 
Итак, имеем:
Три таблицы - articles, categories и sections. По иерархии - в sections включаютÑÑ categories, а в catego...
        
        
        
            0 
        
        
            1374 
        
                    posted 14 years ago by graceman9
            Mostrar un link a una subcategorÃa, dependiendo de la categorÃa superior. category_parent es igual al id de la categorÃa superior. Sirve sólo cuando el post tiene una categorÃa hija de la categorÃa superior.
        
        
        
            0 
        
        
            1182 
        
                    posted 15 years ago by jhonqwerty
            How to get actual category name in wordpress if is_category() is true
        
        
        
            0 
        
        
            1114 
        
                    posted 15 years ago by AlessandroCoscia
            Usually use in a template with `in_category()`, like `if ( in_category( 3 ) || in_subcategory( 3 ) ) { ...`. Tested in WP 2.8.4.
        
        
        
            1 
        
        
            1416 
        
                    posted 16 years ago by cyberhobo
            
