This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'init', 'cpt' ); | |
function cpt() { | |
$args = array( | |
'public' => true, | |
'label' => 'Notes' | |
); | |
register_post_type( 'notes', $args ); | |
} | |
function reg_cat() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! dynamic_sidebar( 'Widget Area 1' ) ) : ?> | |
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<?php wp_list_categories( array( | |
'orderby' => 'name', | |
'show_count' => true, | |
'exclude' => array( 10 ) | |
) ); ?> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<?php wp_list_pages( array( | |
'title_li' => '' | |
) ); ?> | |
</ul> |