Skip to content

Instantly share code, notes, and snippets.

View jwwicks's full-sized avatar
💭
Cubicle hobbit avoiding death due to boredom.

John Wicks jwwicks

💭
Cubicle hobbit avoiding death due to boredom.
  • Jwx Enterprises
  • Taft, Ca
View GitHub Profile
<?php
/**
* @package Wordpress JetPack Theme Hooks
* @author jwwicks
* @copyright Copyright (C) 2017 jwwicks
* @license GNU/GPLv2 and later
*
* http://www.gnu.org/licenses/gpl-2.0.html
*
* Note: Place the code below in your functions.php theme file
@jwwicks
jwwicks / yoast_seo_sitemap_add_custom_type.php
Created January 7, 2019 21:42 — forked from amboutwe/yoast_seo_sitemap_add_custom_type.php
Filters and example code for Yoast SEO sitemaps
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/* Create Custom Yoast Sitemap
* Credit: Unknown
* Last Tested: Unknown
*********
* HOW TO USE
* Replace TYPE with your custom type
*/
@jwwicks
jwwicks / particlename.html.twig
Created February 16, 2018 21:14
Gantry Particle using Twig and PODS
{% extends '@nucleus/partials/particle.html.twig' %}
{# Query Parameters #}
{% set query_parameters ={
'cat' : '-1',
'post_type' : 'pods-post-type',
'post_status' : 'publish'
} %}
{% set articles = wordpress.call('Timber::get_posts', query_parameters) %}
.flowplayer { width: 80%; }
<!DOCTYPE html>
<html class="no-js" lang="en" >
<head>
<meta name="description" content="Foundation Scaffold" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Foundation 5</title>
<link rel="stylesheet" href="//jwwicks.com/files/jsfiddle/css/normalize.css">