Tag » Wordpress 2

WordPress li nav menu set in 2 columns

We can customized wp_nav_menu using walker class.

below snippet to set menu in 2 columns. Add in functions.php file.

class DW_Walker_Nav_Menu extends Walker_Nav_Menu {

var $current_menu = null;
var $break_point = null;

function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) {

global $wp_query;

if( !isset( $this->current_menu ) )
$this->current_menu = wp_get_nav_menu_object( $args->menu );

if( !isset( $this->break_point ) )
$this->break_point = ceil( $this->current_menu->count / 2 ) + 1;

$indent = ( $depth ) ? 306 kata lagi

Wet Dynamic Limit Post Excerpt Length In WordPress

Many ways to we can change WordPress post excerpt length

  • WordPress hook
  • Custom function

Add bellow snippet in functions.php file.

1. WordPress hook.
function custom_excerpt_length( $length ) {
return 20;
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 ); 123 kata lagi

how to find the mysql hostname in terminal(SSH)

If you want to know the port number of your local host on which Mysql is running you can use this query on MySQL Command line client — 222 kata lagi


Facebook Instant Articles feed not being crawled


After installing in WordPress one of the Facebook Instant Articles plugins, the feed can be seen in browser at https://www.example.com/feed/fb/ but the Facebook publishing tool can’t crawl it. 71 kata lagi


Meeting/Greeting Settling and Planning

It’s so beautiful here in Canada! We had a two-ish-hour bus ride from the airport to Whistler, and I was desperate for sleep (had already been traveling for 11 hrs), but I couldn’t allow myself to nap. 225 kata lagi


Packing and GM Prep

Pride isn’t a super attractive trait. That said, I’m pretty proud of my latest packing feat. It’s always my goal to pack light–usually packing for a week in a single backpack. 339 kata lagi


7 WordPress Themes To Soar Your Online Revenue!

Today’s market scenario is highly supportive to selling digital products. You just need a website to showcase your products. With billions of people using internet for multiple needs, it gets easier for online drivers to sell to the shoppers looking for quality products. 876 kata lagi