This file contains hidden or 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
https://codex.wordpress.org/Function_Reference/get_categories#Dropdown_Box_as_used_in_Parent_category_at_post_category_page | |
https://wordpress.org/support/topic/how-to-display-the-child-category-of-a-specific-parent-category | |
https://wordpress.org/support/topic/get-parent-category | |
https://wordpress.org/support/topic/ordering-by-meta-key-value | |
http://stackoverflow.com/questions/15613750/do-a-custom-query-search-in-wordpress-by-post-meta | |
http://wordpress.stackexchange.com/questions/105696/custom-search-for-custom-post-type-custom-meta-and-search-fields |
This file contains hidden or 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
# Just writing `p` is so much faster | |
alias p="gulp" | |
# And for Grunt | |
alias u="grunt" | |
# Server the current directory at localhost:8884 | |
alias simpleserver="python -m SimpleHTTPServer 8884" | |
# Copy my public key to clipboard | |
alias sshkey="cat ~/.ssh/id_rsa.pub | pbcopy && echo 'Copied to clipboard.'" | |
# Easy editing my zshrc file | |
alias zshrc="subl ~/.zshrc" |
This file contains hidden or 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 (mail('[email protected]', 'Subject', 'Body goes here')) { | |
echo 'awesome'; | |
} else { | |
echo 'failed'; | |
} |
This file contains hidden or 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
// CSStyle | |
@include component(button) { | |
background: red; | |
@include option(blue) { | |
color: blue; | |
} | |
} | |
// Without component |
This file contains hidden or 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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
// csstyle v1.3.1 for sass | |
// Clean, Simple Styling for the Web | |
// http://www.csstyle.io | |
// Copyright (c) 2014 Dave Geddes | |
// https://twitter.com/geddski |
This file contains hidden or 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
// CSStyle | |
@include component(button) { | |
display: block; | |
@include option(blue) { | |
color: blue; | |
} | |
@include part(icon) { | |
position: absolute; |
This file contains hidden or 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
{ | |
"type": "package", | |
"package": { | |
"name": "advanced-custom-fields/advanced-custom-fields-pro", | |
"version": "5.1.9.1", | |
"type": "wordpress-plugin", | |
"dist": { | |
"type": "zip", | |
"url": "http://connect.advancedcustomfields.com/index.php?p=pro&a=download&k=YOUR_KEY_HERE=" | |
} |
This file contains hidden or 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 wp_api_encode_acf($data,$post,$context){ | |
$data['meta'] = array_merge($data['meta'],get_fields($post['ID'])); | |
return $data; | |
} | |
if( function_exists('get_fields') ){ | |
add_filter('json_prepare_post', 'wp_api_encode_acf', 10, 3); | |
} |
This file contains hidden or 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
className([ | |
'folder', | |
'list__item', | |
'folder--empty' => current_conversations.count == 0, | |
'search-facet__list__item--has-children', | |
'search-facet__list__item', | |
'search-facet__list__item--active' => current_conversations.include?(conversation) | |
]) |
This file contains hidden or 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
{ | |
"ID":1, | |
"title":"Hello world!", | |
"status":"publish", | |
"type":"post", | |
"author":{ | |
"ID":1, | |
"username":"admin", | |
"name":"admin", | |
"first_name":"", |