Exclude Pages from Default Menu in Twenty Eleven

If you are not using the custom menu, the theme uses `wp_page_menu()` as a fallback.

As always, start by creating a child theme of Twenty Eleven; http://codex.wordpress.org/Child_Themes

To exclude pages from the default menu, edit functions.php in the child theme and add something like:

//exclude pages from default menu//
function twentyelevenchild_page_menu_args( $args ) {
		$args['exclude'] = '17,38';
	return $args;
}
add_filter( 'wp_page_menu_args', 'twentyelevenchild_page_menu_args' );

The numbers refer to the page IDs of the pages you want to exclude.

Button Sofa in Peach Pink Silk

Fresh out of my miniature furniture workshop – a gorgeous vintage style button sofa for dolls. Upholstered with peach pink dupioni silk, curved back, soft chunky arm rests, buttoned back.

peach pink silk button settee vintage style doll size
luxurious tufted silk settee, doll sized, handcrafted
  • Size (appr.):
    • overall width: 40cm / 16in
    • seat height: 13cm / 5in
    • seat depth: 17cm / 7in
    • seat width: 27cm / 11in
    • overall height: 25cm / 10in
    • overall depth: 22cm / 9in
  • Structure:
    • visible parts: solid wood, natural or stained
    • hidden parts: MDF, solid wood
  • Upholstery:
    • foam padding
    • polyester wadding
    • pure dupioni silk covers
  • Cushions:
    • natural feather filling

Ideal companion for an American Girl ™ Doll or any suitably sized collectors’ doll.

SOLD – the settee has found a new home in Norway. We wish the happy dolls all the best and lots of joy with this georgeous sofa.

Similar settees and sofas will frequently get listed online in the ‘silkandart’ etsy shop or in the silkandart.com web site.

 

Injecting Multiple adsense Ads into a WordPress Loop

The versatile code injects for instance adsense ad codes several times into the posts of an index or archive page, starting with a pre-set post, and then repeated in regular intervals (up to a set limit of ads per page).

For example, in a child theme of Twenty Fourteen, this code would be added into content.php at a suitable location:

<?php 
//set the variables//
$nth = 3; //1,2,3,,4...; repeated every n-th post
$snr = 1; //1,2,3...; pre-set start with post nr
$limit = 3; //adsene TOS limit of ads per web page

$lsnr = $snr - 1; // correct for loop counter start at zero

if( $wp_query->current_post >= $lsnr && ( $wp_query->current_post - $lsnr )%$nth == 0 && (int)(( $wp_query->current_post - $lsnr ) / $nth ) < $limit ) { ?>
ADSENSE CODE
<?php } ?>

The example values would start the add in the first post, and repeated every three posts for a maximum of 3 ads.