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
UPDATE `<wp_posts SQL Row>` | |
SET `post_type` = '<new post type name>' | |
WHERE `post_type` = '<old post type name>'; |
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
UPDATE `<wp_term_taxonomy SQL Row>` | |
SET `taxonomy` = '<new taxonomy name>' | |
WHERE `taxonomy` = '<old taxonomy name>'; |
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
function cpt_book_init() { | |
$labels = array( | |
'name' => 'Books', | |
'singular_name' => 'Book', | |
'menu_name' => 'Books', | |
'name_admin_bar' => 'Book', | |
'add_new' => 'Add New', 'book', | |
'add_new_item' => 'Add New Book', | |
'new_item' => 'New Book', | |
'edit_item' => 'Edit Book', |
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 | |
$template = get_page_template(); | |
$template = explode('/', $template); | |
$template = end($template); | |
?> |
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 | |
$listedInfo = array( | |
'client' => 'Client', | |
'city' => 'Location', | |
'date' => 'Project Date', | |
'cost' => 'Construction Cost', | |
'size' => 'Building Size', | |
'schedule' => 'Construction Schedule' | |
); |
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 $postsPerPage = get_option('posts_per_page'); ?> |
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
<title> | |
<?php | |
if (!is_front_page()) { | |
wp_title(''); | |
echo " | "; | |
} | |
bloginfo('name'); | |
echo " - "; | |
bloginfo('description'); | |
?> |
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
// Return term of Archive Page. | |
function ybArchiveTitle() { | |
$archiveTitle = ""; | |
if ( is_category() ) { | |
$archiveTitle = single_cat_title('', FALSE); | |
} | |
elseif ( is_tag() ) { | |
$archiveTitle = single_tag_title('', FALSE); | |
} |
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 $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?> |
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 | |
$args = array( | |
'postID' => '', | |
'customTax' => 'artwork_category', | |
'withLink' => TRUE, | |
'separator' => ' | ', | |
'exclude' => array() | |
); | |
yb_list_custom_taxonomy($args); |
NewerOlder