Skip to content

Instantly share code, notes, and snippets.

View vinniedauer's full-sized avatar

Vinnie Dauer vinniedauer

  • Ohio
View GitHub Profile
@vinniedauer
vinniedauer / query.php
Created October 23, 2018 17:43
Resource Type filter dropdown and relevant query
<?php ?>
<div class="dropdown-menu" id="resource_types" aria-labelledby="navbarDropdown">
<div class="facetwp-radio" onclick="FWP.reset('resource_type')">All Types</div>
<?php echo do_shortcode('[facetwp facet="resource_type"]'); ?>
</div>
<?php
if (isset($_GET['resource_type'])) {
$type = $_GET['fwp_resource_type'];
<?php
/*
* Template Name: Churches Main
*/
$church_args = array(
'post_type' => 'churches',
'posts_per_page' => -1
);
### Begin System Info ###
## Please include this information when posting support requests ##
Multisite: Yes
SITE_URL: https://banner2017.wpengine.com/us
HOME_URL: http://banner2017.wpengine.com/us
<div class="buttons">
<a href="<?php echo esc_url( get_permalink( $r->post->ID ) ); ?>" class="button learn-more">Learn More</a>
<?php
if ( ! $product->is_purchasable() && ! in_array( $product->product_type, array( 'external', 'grouped' ) ) ) return;
if ( ! $product->is_in_stock() ) : ?>
<h1><?php echo $product->product_type; ?></h1>
<a href="<?php echo apply_filters( 'out_of_stock_add_to_cart_url', get_permalink( $product->id ) ); ?>" class="button add-to-cart"><?php echo apply_filters( 'out_of_stock_add_to_cart_text', __( 'Read More', 'woocommerce' ) ); ?></a>
<?xml version="1.0" encoding="UTF-8"?>
<GoogleCustomizations>
<CustomSearchEngine>
<Title/>
<Description/>
<Context>
<BackgroundLabels>
<Label mode="FILTER" name="included"/>
<Label mode="ELIMINATE" name="excluded"/>
</BackgroundLabels>
### Begin System Info ###
## Please include this information when posting support requests ##
Multisite: No
SITE_URL: http://www.hlg.edu
HOME_URL: http://www.hlg.edu