Skip to content

Instantly share code, notes, and snippets.

Bruce Munson WebEndevSnippets

Block or report user

Report or block WebEndevSnippets

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tmoitie
tmoitie / gist:9808555
Last active Feb 25, 2019
Wordpress: Gravity Forms List to ACF Repeater post save
View gist:9808555
<?php
add_action('gform_after_submission', 'gfToAcfListToRepeater', 10, 2);
function gfToAcfListToRepeater($entry, $form)
{
foreach ($form['fields'] as $field) {
if (!($field['type'] == 'post_custom_field' && $field['inputType'] == 'list' && $field['enableColumns'] == true)) {
continue;
}
$id = $field['id'];
@bradyvercher
bradyvercher / cache-post-thumbnails.php
Created Jan 9, 2014
WordPress: Cache post thumbnail attachments that appear in a WP_Query loop.
View cache-post-thumbnails.php
<?php
/**
* Plugin Name: Cache Post Thumbnails
* Description: Prime the post thumbnails cache for individual loops.
* Version: 1.0.0
* Author: Brady Vercher
* Author URI: http://www.blazersix.com/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
@norcross
norcross / login-string-check.php
Created Dec 20, 2012
check login URL for specific query string
View login-string-check.php
<?php
/*
* Check the URL of the WordPress login
* page for a specific query string
*
* assumes login string is
* http://mysite.com/wp-login.php?question=answer
*/
function rkv_login_stringcheck() {
View functions.php
<?php
/**
* Grid Loop Pagination
* Returns false if not grid loop.
* Returns an array describing pagination if is grid loop
*
* @author Bill Erickson
* @link http://www.billerickson.net/a-better-and-easier-grid-loop/
*
@billerickson
billerickson / genesis-custom-loop-pagination.php
Created Jul 31, 2012
Genesis custom loop with pagination
View genesis-custom-loop-pagination.php
<?php
/* Template Name: Test */
/**
* Genesis custom loop
*/
function be_custom_loop() {
global $post;
// arguments, adjust as needed
@GaryJones
GaryJones / functions.php
Created Feb 12, 2012 — forked from billerickson/functions.php
Genesis Grid Loop Advanced
View functions.php
<?php
/**
* Possibly amend the loop.
*
* Specify the conditions under which the grid loop should be used.
*
* @author Bill Erickson
* @author Gary Jones
* @link http://code.garyjones.co.uk/genesis-grid-loop-advanced/
You can’t perform that action at this time.