This file contains 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
/* | |
Plugin Name: | |
Plugin URI: http://luetkemj.com/ | |
Description: | |
Author: Mark Luetke | |
Author URI: http://luetkemj.com | |
Version: 1.0 | |
*/ |
This file contains 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
<!DOCTYPE html> | |
<title>HTML5 abbr</title> | |
<meta charset=utf-8> | |
<h1>That's it!</h1> | |
<ul> | |
<li>Really? | |
<li>Really. | |
</ul> |
This file contains 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
/* ============================================================================= | |
WordPress WYSIWYG Editor Styles | |
========================================================================== */ | |
.entry-content img { | |
margin: 0 0 1.5em 0; | |
max-width: 100%; | |
height: auto; | |
} | |
.alignleft, img.alignleft { |
This file contains 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
// 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 | |
*/ |
This file contains 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
.inline-block { | |
display: inline-block; | |
/* IE7 hack to mimic inline-block on block elements */ | |
*display: inline; | |
*zoom: 1; | |
} |
This file contains 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>The HTML5 Herald</title> | |
<meta name="description" content="Quick Template"> | |
<meta name="author" content="luetkemj"> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> |
This file contains 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
##too many open files error when installing gulp for google's web starter. This did the trick | |
ulimit -n 1048 |
This file contains 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 | |
/* ============================================================================= | |
MCE FILTERS | |
========================================================================== */ | |
/** | |
http://wp.tutsplus.com/tutorials/theme-development/adding-custom-styles-in-wordpress-tinymce-editor/ | |
* | |
inline | |
Name of the inline element to produce for example “span”. The current text selection will be wrapped in this inline element. |
This file contains 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
<div class="pattern" id="demo-pattern.variant"> | |
<details class="pattern-details"> | |
<summary class="pattern-name"> | |
demo-pattern.variant <a class="pattern-link" rel="bookmark" href="" title="View just this pattern">#</a> | |
</summary> | |
<code class="pattern-markup language-markup"> | |
<!-- github gists or possibly a grunt task to highlight markup here... --> | |
</code> |
This file contains 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 | |
// current blog | |
$switch_from = get_current_blog_id(); | |
// blog id we are switching to so we can create a category there | |
$switch_to = 2; | |
echo 'About to switch to '.$switch_to.' from '. $switch_from.'.'; | |
// https://codex.wordpress.org/WPMU_Functions/switch_to_blog | |
switch_to_blog( $switch_to ); |
OlderNewer