Instantly share code, notes, and snippets.

John Regan johnregan3

View GitHub Profile
View wordpress-transients-tutorial-02.php
<?php
/**
* Get Books posts.
*
* This is from a tutorial found here:
* @link https://johnregan3.wordpress.com/how-to-improve-wordpress-load-times-using-transients
*
* @since 1.0.0
*
* @param array $genre_array An array of genre slugs.
View wordpress-transients-tutorial-01.php
<?php
/**
* Get News posts.
*
* This is from a tutorial found here:
* @link https://johnregan3.wordpress.com/how-to-improve-wordpress-load-times-using-transients
*
* @since 1.0.0
* @uses jr3_news_query
*
View related-posts-01.php
View better-related-posts-05.php
View better-related-posts-04.php
View related-posts-tutorial-03.php
View related-posts-tutorial-02.php
View better-related-posts-01.php
View better-related-posts-final.php
View gutenberg-custom-editor-styles.css
/* Custom Editor Styles */
/*
* With some edits, this can be used as a base for your Custom Editor Styles.
* Note that this is for demonstration purposes only, and some elements may not
* be covered here.
*/
/* Approximate the theme width, except for full-width images. */
.wp-block:not( '.editor-block-list__block["data=full"]' ) {