Skip to content

Instantly share code, notes, and snippets.

@jdevalk
jdevalk / archive-wpseo_locations.php
Created December 3, 2013 11:31
Easily create a custom post type archive page such as demoed on [the Yoast Local SEO demo site](http://local.yoastdemo.com/locations/) using this file:
<?php
/** Replace the standard loop with our custom Locations loop */
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'wpseo_locations_archive_loop' );
function wpseo_locations_archive_loop() {
echo '<h1>Locations</h1>';
echo '<div class="entry-content"><p>Your intro text here.</p></div>';
$args = array(

These are the default titles & descriptions I use when using the Local SEO plugin. Note this is only available and used when doing multiple locations.

#####Yoast Local SEO CPT (Default CPT Name is Locations)

Title: %%title%% %%sep%% %%cf__wpseo_business_address%% %%cf__wpseo_business_city%%, %%cf__wpseo_business_state%% %%cf__wpseo_business_zipcode%% %%sep%% %%sitename%%

Description: %%excerpt%%

#####Yoast Local SEO CPT Archive Page (Default CPT Name is Locations)

@bhubbard
bhubbard / yoast-localseo-titles.markdown
Last active December 30, 2015 01:59
Here is my template for the global titles and descriptions in yoast. Quick Useful Link: http://www.quicksprout.com/the-advanced-guide-to-seo-chapter-4/

These are the default titles & descriptions I use when using the Local SEO plugin. Note this is only available and used when doing multiple locations.

#####Yoast Local SEO CPT (Default CPT Name is Locations)

Title: %%title%% %%sep%% %%cf__wpseo_business_address%% %%cf__wpseo_business_city%%, %%cf__wpseo_business_state%% %%cf__wpseo_business_zipcode%% %%cf__wpseo_business_country%% %%sep%% %%pt_single%% %%sep%% %%sitename%%

Description: %%excerpt%%

#####Yoast Local SEO CPT Archive Page (Default CPT Name is Locations)

@spivurno
spivurno / gw-gravity-forms-calculated-shipping.php
Last active November 19, 2021 16:51
Gravity Wiz // Gravity Forms // Calculated Shipping
<?php
/**
* WARNING! THIS SNIPPET MAY BE OUTDATED.
* The latest version of this snippet can be found in the Gravity Wiz Snippet Library:
* https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-calculated-shipping.php
*/
/**
* Gravity Wiz // Gravity Forms // Calculated Shipping
*
* A simple method for using a calculated product field as a shipping field. This provides the ability to use
@hissy
hissy / rscsvimporter-debug.php
Last active April 6, 2020 03:24
Really Simple CSV Importer Debugger add-on
<?php
/*
Plugin Name: Really Simple CSV Importer Debugger add-on
Description: Enables to dry-run-testing with Really Simple CSV Importer. When this add-on plugin activated, csv data will not imported, just displayed on dashboard.
Author: Takuro Hishikawa
Version: 0.2
*/
class rscsvimporter_debug {
// singleton instance
@cliffordp
cliffordp / pagelines-dms-force-ssl-https-wp-engine.php
Last active February 12, 2017 16:38
PageLines DMS Force SSL/HTTPS
<?php
/*
Plugin Name: PageLines DMS Force SSL/HTTPS (for WP Engine)
Author: TourKick (Clifford P)
Author URI: http://tourkick.com/?utm_source=pagelines&utm_medium=plugin&utm_content=pluginuri&utm_campaign=dmsforcessl
Plugin URI: http://www.pagelinestheme.com/pagelines-dms-ssl-https/?utm_source=pagelines&utm_medium=plugin&utm_content=pluginuri&utm_campaign=dmsforcessl
Description: Force PageLines DMS SSL/HTTPS. <a href="http://www.pagelinestheme.com/pagelines-dms-ssl-https/" target="_blank">http://www.pagelinestheme.com/pagelines-dms-ssl-https/</a> may also be helpful.
License: GPLv2
Version: 1.2
*/
<!DOCTYPE html>
<html lang="en-EN">
<head>
<meta charset="UTF-8" />
<title>Test custom background &amp; header</title>
</head>
<body class="wordpress" itemscope="itemscope" itemtype="http://schema.org/WebPage">
@lkarsten
lkarsten / default.vcl
Last active April 23, 2021 18:32
varnish vcl for ghost blogging platform
#
# Varnish VCL file for Ghost blogging platform.
# http://ghost.org/
#
# Written for Ghost v0.3.0.
#
# This is a low-hanging-fruit type of VCL. TTL of objects are overridden to 2
# minutes, and everything below /ghost/ is pass()-ed so the user sessions
# work.
#
map $uri $blogname{
~^(?P<blogpath>/[^/]+/)files/(.*) $blogpath ;
}
map $blogname $blogid{
default -999;
#Ref: http://wordpress.org/extend/plugins/nginx-helper/
#include /var/www/wordpress/wp-content/plugins/nginx-helper/map.conf ;
}
["\"Deltek\"", "\"Kohler\"", "41studio", "41studio.Com", "Accessories", "Advancedwebranking", "Affermage", "Agencies", "Agency", "Ahrefs", "Ahrefs.Com", "Airconditioning", "Amawaterways", "Analytics", "Analyticsseo", "Animals", "Animation", "Architecture", "Arthur", "Arts", "As9100c", "Authoritylabs", "Avaya", "Azamara", "Bamboo", "Bandana", "Benmanns", "Billabong", "Biography", "Bloomreach", "Boots", "Brandoma", "Brewery", "Brightedge", "British", "Buddymedia", "Burgers", "Business", "Buzzstream", "Camber", "Carnival", "Ccs", "Certified", "Children", "Chimney", "Chimneys", "Classifieds", "Cleaning", "Clips", "Clothes", "Cnn", "Coal", "Coke", "Colibritool", "Comedy", "Commentkahuna", "Concerns", "Cooking", "Courier", "Courses", "Coveo", "Cranford", "Crows", "Cruise", "Cruiselines", "Cruises", "Cruising", "Cunard", "Customs", "Cybersecurity", "Data", "Deloitte", "Drysuit", "Eco", "Ecohydrology", "Ecommerce", "Edi", "Education", "Eels", "Electricals", "Elephants", "Elmo", "Emma", "England", "Entrepreneurs", "En