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 | |
/** The app token for the Circle Squared Publishing Facebook app. */ | |
define( 'CIRCLE_SQUARED_APP_TOKEN', 'access_token={app-id}|{app-secret}'); | |
?> |
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 get_facebook_review_count() { | |
// Build the URL that will call the Facebook API endpoint that contains the | |
// total number of reviews for our page. | |
$url = 'https://graph.facebook.com/v2.10/'; | |
$url .= 'CircleSquaredPublishing'; | |
$url .= '?fields=rating_count&'; | |
// The app token is defined as a PHP constant in the wp-config.php file. This | |
// is a best practice for security purposes. | |
$url .= CIRCLE_SQUARED_APP_TOKEN; | |
// Use PHP's built is CURL library to send a request to the URL created above. |
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 | |
/** | |
* @category Tutorials | |
* @version 1.0 [June 14, 2017] | |
* @author Will Conkwright | |
* @copyright Copyright (c) 2017 Circle Squared Publishing, LLC | |
* A custom function for getting public data from the Facebook Graph API | |
*/ |
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 | |
$schema = get_post_meta( get_the_ID(), 'schema', true ); | |
if( !empty( $schema ) ) { | |
echo $schema; | |
} | |
?> |
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="application/ld+json"> { | |
"@context": "http://schema.org/", | |
"@type" : "BlogPosting", | |
"keywords" : "Endurance Seafood, Commercial Fishing, Bird Man, Keith Bruno, Neuse River, Oriental, North Carolina, Flounder, Seafood", | |
"author" : { | |
"@type" : "Organization", | |
"name" : "The Pamlico News" | |
}, | |
"creator" : { | |
"@type" : "Organization", |
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
/** | |
* @project Heatery | |
* @version 2.0 | |
* @author Will Conkwright | |
* @copyright 2017 Circle Squared Publishing, LLC | |
* @cssdoc version 1.0-pre | |
* @license GPL v3 | |
* | |
*/ |
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 | |
/** | |
* @package Heatery | |
* @version 2.0 [April 18, 2017] | |
* @author Will Conkwright | |
* @copyright Copyright (c) 2017 Circle Squared Publishing, LLC | |
* @license Licensed MIT | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal |
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
/** | |
* @package Heatery | |
* @version 2.0 [April 18, 2017] | |
* @author Will Conkwright | |
* @copyright Copyright (c) 2017 Circle Squared Publishing, LLC | |
* @license Licensed MIT | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights |
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
# ************************************************************ | |
# Sequel Pro SQL dump | |
# Version 4499 | |
# | |
# http://www.sequelpro.com/ | |
# https://github.com/sequelpro/sequelpro | |
# | |
# Host: localhost (MySQL 5.5.42) | |
# Database: tutorials | |
# Generation Time: 2015-10-03 18:22:57 +0000 |
NewerOlder