comments are going to spam

You should not add http:// or wwww. to your Comment Moderation or Blacklist boxes. This will send all comments to a pending status, or WP removes them. If you want stuff to be blacklisted that contains a certain url, add a fully qualified domain name.

Filter posts by multiple checkbox categories

I thing, you should use this code for filter the check box category <?php // cat 42=Laos cat 57=2-4Days <?php $my_query_1 = new WP_query(array(‘category__and’ => array(42,57))); ?> <?php while ($my_query_1->have_posts()) : $my_query_1->the_post(); ?> <a href=”https://wordpress.stackexchange.com/questions/100169/<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?><?php the_excerpt(); ?></a> <?php endwhile; ?>

Get value of a key from a Plugin Serialized array

Just found about plugin_api and using it, the above can be achieved with just below code: /** If plugins_api isn’t available, load the file that holds the function */ if ( ! function_exists( ‘plugins_api’ ) ) require_once( ABSPATH . ‘wp-admin/includes/plugin-install.php’ ); /** Prepare our query */ $call_api = plugins_api( ‘plugin_information’, array( ‘slug’ => ‘i-recommend-this’ ) … Read more

wp_nav_menu changed to wp_page_menu

Found the answer i’ve added changed the wp_nav_menu args to this: wp_nav_menu(array( ‘theme_location’ => ”, ‘menu’ => ”, ‘container’ => ”, ‘container_class’ => ”, ‘container_id’ => ”, ‘menu_class’ => ‘menu’, ‘menu_id’ => ”, ‘echo’ => true, ‘fallback_cb’ => ‘wp_page_menu’, ‘before’ => ”, ‘after’ => ”, ‘link_before’ => ”, ‘link_after’ => ”, ‘items_wrap’ => ‘<ul id=”%1$s” … Read more