This file contains hidden or 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
<script type="text/javascript"> | |
$(function(){ | |
<?php | |
foreach ($responses as $i => $row) | |
{ | |
if ($isFirst) { | |
$isFirst = false; | |
continue; | |
} | |
$isLast = ($i == $last); |
This file contains hidden or 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> | |
<head> | |
<title>Geolocation</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<style> | |
html, body { | |
height: 100%; | |
margin: 0px; |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Embed UR Google Drive Folder w the unique URL ID | |
* Plugin URI: http://bionicteaching.com | |
* Description: Allows an embed of the Google Drive Folder via the unique ID | |
* Version: .9 | |
* Author: Tom Woodward | |
* Author URI: http://bionicteaching.com | |
* License: A "Slug" license name e.g. GPL2 | |
*/ |
This file contains hidden or 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
//points to the gform field where you've named the variable post_body | |
add_filter('gform_field_value_post_body', 'populate_post_body'); | |
//fills the post_body variable with the value found in get_the_content | |
function populate_post_body($value){ | |
global $post; | |
$post_body = get_the_content(); | |
return $post_body; | |
} |
This file contains hidden or 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 id="masonry-container"> | |
[display-posts category="photography" image_size="medium" posts_per_page="22" wrapper=div] | |
</div> |
This file contains hidden or 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
[row] | |
[column md="1"][/column] | |
[column md="5"] | |
[well size="sm"] | |
<h2>Examples by Discipline</h2> | |
[facetwp facet="discipline"] | |
[facetwp template="motherblog"] | |
[/well] | |
[/column] |
This file contains hidden or 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
function add_addthisevent() { //make a function | |
wp_enqueue_script( 'add_this_event', //name it | |
'https://addthisevent.com/libs/1.5.8/ate.min.js', //point to the script you want to enqueue | |
'1.5.8', //what version is the script | |
true); //true puts it in the footer and false puts it in the header | |
} | |
add_action( 'wp_enqueue_scripts', 'add_addthisevent' ); |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Add This Event JS. | |
* Plugin URI: https://addthisevent.com/ | |
* Description: Simply adds the addthisevent.com js to the footer. | |
* Version:1.0.0 | |
* Author: Tom Woodward | |
* Author URI: http://bionicteaching.com | |
* License: GPL2 | |
*/ |
This file contains hidden or 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 | |
while (have_posts()): | |
the_post(); | |
?> | |
<?php | |
if (get_post_meta(get_the_ID(), 'gravatar_email', true)): | |
?> | |
<div class="person"> | |
<?php | |
$gravy = get_post_meta(get_the_ID(), 'gravatar_email', true); |
This file contains hidden or 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 | |
$search = 'ecig'; | |
$url = 'https://api.instagram.com/v1/tags/' . $search .'/media/recent?client_id=YOUR_CLIENT_ID_HERE'; | |
$json = file_get_contents($url); | |
$obj = json_decode($json); | |
date_default_timezone_set('EST'); | |
$list = array(); | |
foreach ($obj->data as $media) { | |
$username = $media->user->username; |
OlderNewer