Tag Info

New answers tagged

1

try and add your location as a parameter. <?php if ( has_nav_menu( $location ) ) { //Do something } ?>


0

You could try this: class List_Category_Images extends Walker_Category { function start_el( &$output, $category, $depth = 0, $args = array(), $id = 0 ) { $saved_data = get_tax_meta( $category->term_id, 'image_field_id', true ); $cat_name = apply_filters( 'list_cats', esc_attr( $category->name ), ...


0

The nav_menu_css_class filter will let you add CSS classes to specific menu items. We combine that with the get_page_template_slug function to fetch the page template filename, then we use that with the get_page_templates method of the theme class to get the template name as defined in the Template Name: header. Then we pass that result through ...



Top 50 recent answers are included