Skip to content

Instantly share code, notes, and snippets.

@Rhymes2k
Rhymes2k / wp-query-ref.php
Created September 23, 2017 14:38 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?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(
@Rhymes2k
Rhymes2k / cpt-gallery.php
Last active January 17, 2019 16:21
WordPress Gallery Page With Custom Post Type And Custom Taxonomy
@Rhymes2k
Rhymes2k / Functions.php
Created October 18, 2015 16:35
Custom More Text With WordPress In Functions.php
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
@Rhymes2k
Rhymes2k / functions.php
Created October 18, 2015 16:33
Wordpress: Boilerplate Functions.php
/** ******** ******** ******** ******** ******** ******** ******** ********
* 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' );
}
{
"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",