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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php | |
*/ | |
$args = array( |
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 | |
//register Gallery post type | |
add_action('init', 'gallery_register'); | |
function gallery_register() { | |
$labels = array( | |
'name' => __('Gallery', 'post type general name'), | |
'singular_name' => __('Gallery Item', 'post type singular 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 custom_more($more_link, $more_link_text) { | |
return str_replace($more_link_text, 'Keep reading this post', $more_link); | |
} | |
add_filter('the_content_more_link', 'my_more_link', 10, 2); | |
//////////////////////////////////////////////////////////////////////////////// | |
Showing Posts With Custom Excerpt Length And Custom Read More Text In WordPress | |
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
/** ******** ******** ******** ******** ******** ******** ******** ******** | |
* Faster than @import | |
* | |
* http://codex.wordpress.org/Customizing_the_Login_Form | |
* | |
*/ | |
function my_child_theme_scripts() { | |
wp_enqueue_style( 'parent-theme-css', get_template_directory_uri() . '/style.css' ); | |
} |
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
{ | |
"remove-empty-rulesets": true, | |
"always-semicolon": true, | |
"color-case": "upper", | |
"block-indent": " ", | |
"color-shorthand": false, | |
"element-case": "lower", | |
"eof-newline": true, | |
"leading-zero": true, | |
"quotes": "single", |