Skip to content

Instantly share code, notes, and snippets.

John Regan johnregan3

View GitHub Profile
@johnregan3
johnregan3 / wordpress-transients-tutorial-02.php
Last active Dec 26, 2018
WordPress Transients Tutorial, Part 2
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.
@johnregan3
johnregan3 / wordpress-transients-tutorial-01.php
Last active Dec 26, 2018
WordPress Transients Tutorial, Part 1
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
*
@johnregan3
johnregan3 / related-posts-01.php
Last active Dec 25, 2018
WordPress Related Posts Tutorial, Part 1
View related-posts-01.php
@johnregan3
johnregan3 / better-related-posts-05.php
Last active Dec 25, 2018
WordPress get related posts - 05
View better-related-posts-05.php
@johnregan3
johnregan3 / better-related-posts-04.php
Last active Dec 25, 2018
WordPress get related posts - 04
View better-related-posts-04.php
@johnregan3
johnregan3 / related-posts-tutorial-03.php
Last active Dec 25, 2018
WordPress Related Posts Tutorial, Part 3
View related-posts-tutorial-03.php
@johnregan3
johnregan3 / related-posts-tutorial-02.php
Last active Dec 25, 2018
WordPress Related Posts Tutorial, Part 2
View related-posts-tutorial-02.php
@johnregan3
johnregan3 / better-related-posts-01.php
Last active Dec 25, 2018
WordPress get related posts - 01
View better-related-posts-01.php
@johnregan3
johnregan3 / better-related-posts-final.php
Created Dec 24, 2018
WordPress get related posts - Final
View better-related-posts-final.php
@johnregan3
johnregan3 / gutenberg-custom-editor-styles.css
Last active Dec 21, 2018
Gutenberg Custom Editor Styles - CSS
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"]' ) {
You can’t perform that action at this time.