Skip to content

Instantly share code, notes, and snippets.

Johan van der Wijk vanderwijk

Block or report user

Report or block vanderwijk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View archief
<script type="text/javascript" src="http://emarketing.vanderwijk.nl/t/y/p/adrhi/-1/0/0/1/0/"></script>
View add_smart_meta_box.php
add_smart_meta_box('page_options_meta_box', array(
'title' => 'Page Options',
'pages' => array('page'),
'context' => 'normal',
'priority' => 'default',
'fields' => array(
array(
'name' => 'Slider',
'id' => 'show_slider',
'default' => 'false',
@vanderwijk
vanderwijk / mx_hide_from_list_pages.php
Created Oct 24, 2012
Exclude pages from wp_list_pages
View mx_hide_from_list_pages.php
function mx_hide_from_list_pages( $exclude_array ) {
global $wpdb;
$table = _get_meta_table('post');
$sql = "SELECT post_id FROM " . $table . " WHERE meta_key ='_smartmeta_navigation_hide' AND meta_value ='true'";
$id_array = $wpdb->get_col($sql);
$exclude_array = array_merge($id_array, $exclude_array);
return $exclude_array;
}
add_filter( 'wp_list_pages_excludes', 'mx_hide_from_list_pages' );
You can’t perform that action at this time.