Skip to content

Instantly share code, notes, and snippets.

View spigotdesign's full-sized avatar

Bryan Hoffman spigotdesign

View GitHub Profile
<?php
/**
* Singular template for Artist CPT
*
*
* @package Oblates
* @subpackage Template
*/
get_header(); // Loads the header.php template. ?>
@spigotdesign
spigotdesign / wp migrate console
Created November 14, 2013 23:09
Migrate error
3 messages are hidden by filters. Show all messages.
Uncaught TypeError: Cannot call method 'create' of undefined measureIt.js:120
event.returnValue is deprecated. Please use the standard event.preventDefault() instead. load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.7.1:4
POST http://oblates.loc/wp-admin/admin-ajax.php 500 (Internal Server Error) load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.7.1:5
send load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.7.1:5
x.extend.ajax load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.7.1:5
migrate_table_recursive script.js?ver=1.2:843
$.ajax.success script.js?ver=1.2:908
c load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.7.1:3
p.fireWith load-scripts.php?c=1&load%5B%5D=jquery-core,jquery-migrate,utils&ver=3.7.1:3
@mixin mq($mq) {
@if $mq == 690 { @media (max-width: 690px) { @content; } }
@if $mq == 320 { @media (max-width: 320px) { @content; } }
@if $mq == retina {
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1),
only screen and ( min-device-pixel-ratio: 2),
#site-title a {
@include hide-text;
display: block;
background: url(img/icons/spigot-logo.png) center center no-repeat;
width: 250px;
height: 100px;
position: relative;
top:5px;
left: -13px;
[04-Jan-2016 15:10:40 UTC] PHP Fatal error: Uncaught exception 'Exception' with message 'There was a problem connecting to the API.' in /home/cinchws/public_html/wp-content/plugins/woocommerce-xero/classes/requests/class-wc-xr-request.php:307
Stack trace:
#0 /home/cinchws/public_html/wp-content/plugins/woocommerce-xero/classes/class-wc-xr-contact-manager.php(56): WC_XR_Request->do_request()
#1 /home/cinchws/public_html/wp-content/plugins/woocommerce-xero/classes/class-wc-xr-contact-manager.php(84): WC_XR_Contact_Manager->get_id_by_email('toni@rvlife.com')
#2 /home/cinchws/public_html/wp-content/plugins/woocommerce-xero/classes/class-wc-xr-invoice-manager.php(132): WC_XR_Contact_Manager->get_contact_by_order(Object(WC_Order))
#3 /home/cinchws/public_html/wp-content/plugins/woocommerce-xero/classes/class-wc-xr-invoice-manager.php(37): WC_XR_Invoice_Manager->get_invoice_by_order(Object(WC_Order))
#4 [internal function]: WC_XR_Invoice_Manager->send_invoice(1906)
#5 /home/cinchws/public_html/wp-includes/plugin.ph
The website encountered an error while retrieving https://cinchws.com/wp-admin/edit.php?s=&post_status=all&post_type=shop_order&_wpnonce=55c2dc4bff&_wp_http_referer=%2Fwp-admin%2Fedit.php%3Fpost_type%3Dshop_order&action=mark_completed&m=0&_email_id=&_customer_user=&shop_order_subtype=&paged=1&post%5B%5D=1902&post%5B%5D=1899&post%5B%5D=1897&post%5B%5D=1895&post%5B%5D=1893&post%5B%5D=1890&post%5B%5D=1882&action2=-1. It may be down for maintenance or configured incorrectly.
<?php get_template_part('inc/my', 'snippet'); ?>
<?php include(locate_template('inc/my-snippet.php')); ?>
@spigotdesign
spigotdesign / wp-config.php
Created February 23, 2016 23:29
Turn on WordPress error reporting
// define('WP_DEBUG', false);
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors', 0);
@spigotdesign
spigotdesign / acf-get-image.php
Last active March 1, 2016 19:01
ACF Get Image snippets
<?php // Get Image url (for background) ?>
<?php $bgImage = esc_html(get_field('img_field')); ?>
<?php $bgURL = wp_get_attachment_image_src($bgImage, 'full'); ?>
<div class="bg" style="background-image: url(<?php echo $bgURL[0]; ?>);"></div>
<?php // Get Image attatchment (for full image output) ?>
<?php $bpImage = esc_html(get_field('img_field')); ?>
<?php echo wp_get_attachment_image($bpImage, 'full'); ?>