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
<script type="text/javascript"> | |
$(function(){ | |
<?php | |
foreach ($responses as $i => $row) | |
{ | |
if ($isFirst) { | |
$isFirst = false; | |
continue; | |
} | |
$isLast = ($i == $last); |
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
//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 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 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 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 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 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 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; |
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 | |
//clearly client_id should = something other than XXXXXXXXXXXXXXXXXXXXXXX | |
$search = 'ecig'; | |
$url = 'https://api.instagram.com/v1/tags/' . $search .'/media/recent?client_id=XXXXXXXXXXXXXXXXXXXXXXX'; | |
$json = file_get_contents($url); | |
$obj = json_decode($json); | |
date_default_timezone_set('EST'); | |
$list = array(); | |
foreach ($obj->data as $media) { |
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
function addTitles() { | |
var sheet = SpreadsheetApp.getActiveSheet(); | |
// sets up the header row for the sheet | |
sheet.appendRow(['User Name', 'Likes Count', 'Comment Count', 'URL', 'Caption', 'Filter', 'Created Time']); | |
} | |
// attempt to loop to get next_url |
OlderNewer