Skip to content

Instantly share code, notes, and snippets.

@GitFrankie
GitFrankie / gist:7783775b09fd00abe8e0ab1f63e00b90
Last active October 3, 2017 14:04
Custom Download Monitor List by Taxonomy
<div class="single-post-wrap">
<div class="container">
<?php //start by fetching the terms for the dlm_download_category taxonomy
$terms = get_terms( 'dlm_download_category', array(
'orderby' => 'count',
'showposts' => '999',
@GitFrankie
GitFrankie / gist:a8bb80226602f39fccd6e6e8e0789ef2
Created October 2, 2017 14:53
Gravity Forms - ACF - Advanced Custom Fields - populate dynamic field
<!-- custom field -->
<?php $email = get_field('send_to_email');?>
<?php echo do_shortcode('[gravityforms id=1 title=false description=false field_values=get_email='.$email.']'); ?>
<!-- repeater -->
<?php $email = get_sub_field('send_to_email');?>
<?php echo do_shortcode('[gravityforms id=1 title=false description=false field_values=get_email='.$email.']'); ?>
@GitFrankie
GitFrankie / gist:d797d706ccc2f1fb01c4ec17b3b3b568
Created October 2, 2017 13:49
search.php with SearchWP and Download Monitor
<?php get_header(); ?>
<!-- page content -->
<div class="pageWrap">
<div class="title-banner">
<div class="container">
<div class="mobile-wrap-page">