Please see: https://github.com/kevinSuttle/html-meta-tags, thanks for the idea @dandv!
Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/
<?php | |
/* | |
Plugin Name: Custom-Post-Type Base | |
Plugin URI: http://pmg.co/ | |
Description: Dynamically change your custom post type slugs | |
Version: n/a | |
Author: Christopher Davis | |
Author URI: http://pmg.co/people/chris | |
License: GPL2/Creative Commons | |
*/ |
/** | |
* CSS triangle with border | |
*/ | |
html, | |
body { | |
height: 100%; | |
} | |
body { | |
padding: 10px 30px 0; | |
background: linear-gradient(45deg, pink , blue) 100% 100% no-repeat; |
<?php | |
/** | |
* Register Styles and Scripts | |
*/ | |
add_action( 'wp_enqueue_scripts', 'ft_scripts_styles' ); | |
function ft_scripts_styles() { |
<?php | |
/* | |
Term Archive Pages: | |
- http://example.com/recipes/dinner/ | |
- http://example.com/recipes/breakfast,brunch/ | |
Single Recipe Pages: | |
- http://example.com/recipes/dinner/soup-title/ |
<?php | |
/** | |
* Skeletal sample shortcode | |
*/ | |
add_shortcode( 'pilau-sample', 'pilau_sample_shortcode' ); | |
function pilau_sample_shortcode( $atts ) { | |
extract( shortcode_atts( array( | |
'text' => '' | |
), $atts ) ); |
<?php | |
/* | |
Plugin Name: Redirect Parent to First Child | |
Plugin URI: http://www.nathanrice.net/parent-to-first-child | |
Description: This plugin will do a 301 redirect on top-level parent pages, to their first child page, based first on menu order, then post title if no menu order is set. It only redirects if a *published* child page actually exists. | |
Version: 0.1 | |
Author: Nathan Rice | |
Author URI: http://www.nathanrice.net/ | |
License: This plugin is licensed under GPL. |
/* css */ | |
.slider { | |
margin: 1.625em 0; | |
} | |
.slider ul { | |
margin: 0; | |
padding: 0; | |
} | |
@media (min-width: 680px) { |
(function() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |
<?php | |
$options = array( | |
'required' => array('id','equals',array( 1,3 ) ) // Multiple values | |
); | |
$options = array( | |
'required' => array('id','equals', array( 1 ) ) // Single value | |
); |