Skip to content

Instantly share code, notes, and snippets.

View jimtrue's full-sized avatar
💭
Working Support for Gravity Forms

Jim True jimtrue

💭
Working Support for Gravity Forms
View GitHub Profile
{"meta":{"version":"2.7.12","build":1554470741},"pods":{"13":{"id":13,"name":"post_tag","label":"Post Tag","description":"","type":"taxonomy","storage":"meta","object":"post_tag","alias":"","fields":[],"show_in_menu":1,"pfat_enable":"0","pfat_run_outside_loop":"0","pfat_append_archive":"append","rest_enable":"0","read_all":"0","write_all":"0","built_in_post_types_project":"1"},"5":{"id":5,"name":"project","label":"Projekte","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":{"project_content":{"id":6,"name":"project_content","label":"Projekt Inhalt","description":"","help":"","class":"","type":"wysiwyg","weight":0,"pick_object":"","pick_val":"","sister_id":"","required":"0","wysiwyg_editor":"tinymce","wysiwyg_media_buttons":"1","wysiwyg_oembed":"0","wysiwyg_wptexturize":"1","wysiwyg_convert_chars":"1","wysiwyg_wpautop":"1","wysiwyg_allow_shortcode":"0","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","r
SELECT
DISTINCT
`t`.*
FROM `wp_posts` AS `t`
LEFT JOIN `wp_postmeta` AS `county` ON
`county`.`meta_key` = 'county'
AND `county`.`post_id` = `t`.`ID`
@jimtrue
jimtrue / gravityforms-export-zero-to-hero.json
Created September 20, 2017 19:39
Pods Zero to Hero Gravity Form Import
{"0":{"title":"Get Started","description":"Start your heroic journey by contacting one of our trainers today!","labelPlacement":"top_label","descriptionPlacement":"below","button":{"type":"text","text":"Submit","imageUrl":""},"fields":[{"type":"name","id":1,"label":"Name","adminLabel":"","isRequired":true,"size":"medium","errorMessage":"","nameFormat":"advanced","inputs":[{"id":"1.2","label":"Prefix","name":"","choices":[{"text":"Mr.","value":"Mr.","isSelected":false,"price":""},{"text":"Mrs.","value":"Mrs.","isSelected":false,"price":""},{"text":"Miss","value":"Miss","isSelected":false,"price":""},{"text":"Ms.","value":"Ms.","isSelected":false,"price":""},{"text":"Dr.","value":"Dr.","isSelected":false,"price":""},{"text":"Prof.","value":"Prof.","isSelected":false,"price":""},{"text":"Rev.","value":"Rev.","isSelected":false,"price":""}],"isHidden":true,"inputType":"radio"},{"id":"1.3","label":"First","name":""},{"id":"1.4","label":"Middle","name":"","isHidden":true},{"id":"1.6","label":"Last","name":""},{"id"
@jimtrue
jimtrue / zero_to_hero_pods.json
Created September 20, 2017 19:37
JSON Pods Components Migrate: Packages Export for Zero to Hero
{"meta":{"version":"2.7.0-rc-1","build":1505936165},"pods":{"85":{"id":85,"name":"business","label":"Business Settings","description":"","type":"settings","storage":"none","object":"","alias":"","fields":{"monday_start":{"id":86,"name":"monday_start","label":"Monday Start","description":"","help":"","class":"","type":"time","weight":0,"pick_object":"","pick_val":"","sister_id":"","required":"0","time_type":"12","time_format":"h_mma","time_format_24":"hh_mm","time_allow_empty":"1","time_html5":"0","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","time_repeatable":"0","time_format_custom":"","time_format_custom_js":""},"monday_end":{"id":87,"name":"monday_end","label":"Monday End","description":"","help":"","class":"","type":"time","weight":1,"pick_object":"","pick_val":"","sister_id":"","required":"0","time_type":"12","time_format":"h_mma","time_format_24":"hh_mm","time_allow_empty":"1","tim
<?php
class WPorg_Handbook_Pages_Widget extends WP_Widget_Pages {
protected $post_types = array( 'handbook' );
function __construct() {
$widget_ops = array('classname' => 'widget_wporg_handbook_pages', 'description' => __( 'Your site&#8217;s Handbook Pages', 'wporg' ) );
WP_Widget::__construct( 'handbook_pages', __( 'Handbook Pages', 'wporg' ), $widget_ops );
}
@jimtrue
jimtrue / single-actor.php
Created July 31, 2015 00:35
Single Actor Example Pods API Theme File
<?php
/*
Template Name: Actor Detail
*/
?>
<?php get_header(); ?>
<!-- Row for main content area -->
<div class="small-12 large-8 columns" id="content" role="main">
@jimtrue
jimtrue / single-video.php
Last active August 29, 2015 14:26
Single Video Detail Example using Pods API for Pods'ify My Theme Pt 2 - Pods Class Detail Page with Relationships
<?php
/*
Template Name: Video Detail
*/
?>
<?php get_header(); ?>
<!-- Row for main content area -->
<div class="small-12 large-8 columns" id="content" role="main">
@jimtrue
jimtrue / archive-video.php
Created July 30, 2015 16:32
Archive Example using Pods API
<?php
/*
Template Name: Video Archive
*/
?>
<?php get_header(); ?>
<!-- Row for main content area -->
<div class="small-12 large-8 columns" id="content" role="main">
@jimtrue
jimtrue / taxonomy_dropdown_filter.php
Created July 21, 2015 15:41
Create a Taxonomy Filter Drop-down List for Custom Taxonomy
<?php
$terms = get_terms( 'videocategory' );
echo '<ul>';
foreach ( $terms as $term ) {
// The $term is an object, so we don't need to specify the $taxonomy.
$term_link = get_term_link( $term );