Tags » Wordpress 2

Dear men, The best way to prove that you have grown big balls is to forget that you have them.

Blogs

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 more words
WordPress

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 more words
WordPress

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 more words

Mysql

Facebook Instant Articles feed not being crawled

Description:

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 more words

Wordpress

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 more words

Family

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 more words

Wordpress