#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
| <?php | |
| /** | |
| * Template Redirect | |
| * Use archive-event.php for all events and 'event-category' taxonomy archives. | |
| * @author Bill Erickson | |
| * @link http://www.billerickson.net/code/use-same-template-for-taxonomy-and-cpt-archive/ | |
| * | |
| * @param string, default template path | |
| * @return string, modified template path |
| <?php | |
| /** | |
| * Full Content in Display Posts Shortcode plugin | |
| * @author Bill Erickson | |
| * @link http://wordpress.org/extend/plugins/display-posts-shortcode/ | |
| * | |
| * @param string $output the original markup for an individual post | |
| * @param array $atts all the attributes passed to the shortcode | |
| * @param string $image the image part of the output | |
| * @param string $title the title part of the output |
| <?php | |
| /** | |
| * Modify Date Format in Display Posts Shortcode plugin | |
| * @author Bill Erickson | |
| * @link http://wordpress.org/extend/plugins/display-posts-shortcode/ | |
| * @link http://wordpress.org/support/topic/plugin-display-posts-shortcode-show-date-in-format-dmy | |
| * | |
| * @param $output string, the original markup for an individual post | |
| * @param $atts array, all the attributes passed to the shortcode | |
| * @param $image string, the image part of the output |
| <?php | |
| /** | |
| * Exclude Pages from Genesis Subpages as Secondary Menu plugin | |
| * Use page IDs | |
| * | |
| * @param array $args | |
| * @return array | |
| */ | |
| function be_exclude_pages_from_submenu( $args ) { |
| <?php | |
| /** | |
| * Template Name: Custom Category Archive | |
| * | |
| * | |
| */ | |
| get_header(); ?> | |
| <?php genesis_before_content_sidebar_wrap(); ?> | |
| <div id="content-sidebar-wrap"> | |
| <?php genesis_before_content(); ?> |
#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
| // This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref | |
| <?php | |
| /** | |
| * WordPress Query Comprehensive Reference | |
| * Compiled by luetkemj - luetkemj.github.io | |
| * | |
| * CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters | |
| * Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php | |
| */ |
| <?php | |
| /** | |
| * Add Read More link to Display Posts Shortcode plugin | |
| * @author Bill Erickson | |
| * @link http://wordpress.org/extend/plugins/display-posts-shortcode/ | |
| * | |
| * @param string $output the original markup for an individual post | |
| * @param array $atts all the attributes passed to the shortcode | |
| * @param string $image the image part of the output | |
| * @param string $title the title part of the output |
| <?php | |
| /*-----------------------------------------------------------------------------------*/ | |
| /* Conditional Logic to Detect Various Event Related Views/Pages | |
| /*-----------------------------------------------------------------------------------*/ | |
| if( tribe_is_month() && !is_tax() ) { // Month View Page | |
| echo 'were on the month view page'; | |
| } elseif( tribe_is_month() && is_tax() ) { // Month View Category Page |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs