display menu as table layout

Editing my answer. See the screenshot, if it’s close enough to what you’re looking for, try adding the following to your stylesheet. .header_menu_res ul li { margin: 0 0 20px; width: 25%; } .menu-item i._mi, .menu-item img._mi { display: block; float: left; } .menu-item span { margin-top: 8px; display: block; margin-left: 60px; }

Walker menu not displaying at all

The walker code is okay, but in order to have this markup: <ul class=”nav navbar-nav” data-in=”fadeInDown” data-out=”fadeOutUp”> … </ul> ..in the array passed to the wp_nav_menu() function, set items_wrap to: <ul id=”%1$s” class=”%2$s” data-in=”fadeInDown” data-out=”fadeOutUp”>%3$s</ul> So the full markup would be: <div class=”collapse navbar-collapse” id=”navbar-menu”> <?php wp_nav_menu( array( ‘menu_class’ => ‘nav navbar-nav’, ‘container’ => ”, … Read more

How to add rel=”nofollow” to wp_list_pages?

use wordpress build in funcion for that “wp_rel_nofollow” with a hook to wp_list_pages. paste this code in your theme’s functions.php file and you are set. function add_no_follow($output){ return wp_rel_nofollow($output); } add_filter(‘wp_list_pages”https://wordpress.stackexchange.com/questions/7688/,”add_no_follow’); hope this helps.

next_post_link / previous_post_link not working with WP_Query

next_post_link & previous_post_link work off the global $wp_query. You could simply overwrite the main query with $wp_query =& $query, or replace your custom query with the standard ‘global’ functions. <?php query_posts( array( “post_type” => “page”, “page_id” => $post->ID ) ) ?> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post() … Read more

reverse next/prev page order

This is because it is, by default, done as ‘previous page’ on the left, and ‘next page’ on the right. Posts appear in reverse chronological order, with the latest post first, so ‘next page’ means going back in time. So in terms of pages it makes sense, in terms of chronology it doesn’t. Anyway… this … Read more

Issue with front page navigation after upgrading to 3.4

It stopped to work with WP 3.4 because there was fixes to handle_404(), and You are using wrong way on homepage… instead of creating new query, modify main query. Changeset: http://core.trac.wordpress.org/changeset/19892 Sample code: function my_query_for_homepage( $query ) { if( $query->is_main_query() && $query->is_home() ) { $query->set( ‘post_type’, array( ‘post’, ‘gaming’, ‘entertainment’, ‘tech’, ‘breakroom’, ‘podcasts’, ‘off-grid’ ) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)