Hot answers tagged

5

I was curious and decided to check it out, regardless if it's relevant for a CSS problem ;-) I first peeked into the database tables to find more about the menu structure: Menu - building blocks Each navigational menu is registered as a term in the nav_menu taxonomy. Then when we add items to that menu, we are creating new post objects of the type ...


1

Thanks for the help birgire. That gave me a lot to think about. Eventually I have came up with a solution using a filter I can count the number of parents the menu has. The only problem with this approach is that it will run every time a menu is displayed. function my_nav_menu_objects($sorted_menu_items, $args) { if($args->menu == 'header_menu') { ...


1

I am using standard WP galleries and have each image link to an attachment page where the image is displayed fullsize. To show PREVIOUS and NEXT links in order for the user to get to the corresponding images I found the functions previous_image_link and next_image_link useful. In my attachment.php I have the following lines to make WordPress display ...



Only top voted, non community-wiki answers of a minimum length are eligible