Skip to content

Instantly share code, notes, and snippets.

@mattsteele
mattsteele / relationships.html
Last active August 29, 2015 13:57
This is an EE template that has both the depreciated native EE relationship {reverse_related_entries} and Playa entries. When upgraded to EE 2.7.3, the native EE tags no longer render, even when updated to {parents:}
{embed=site/header}
<div class="content">
{exp:channel:entries
channel="speakers"
limit="1"
}
<div class="content-box">
<img src="{speaker-identity-graphic}" alt="{title} Photo" />
</div>

Keybase proof

I hereby claim:

  • I am mattsteele on github.
  • I am mattsteele (https://keybase.io/mattsteele) on keybase.
  • I have a public key whose fingerprint is 3526 DACD EAC3 3F7C B23B 370F 658A 1447 FDE8 8FD0

To claim this, I am signing this object:

@mattsteele
mattsteele / filter.php
Last active August 29, 2015 14:27
Filter posts by category
<div class="styled-select">
<?php $args = array(
'show_option_none' => __( 'Filter Blog By Category' ),
'orderby' => 'name',
'exclude' => 1,
); ?>
<?php wp_dropdown_categories( $args ); ?>
<script type="text/javascript">
var dropdown = document.getElementById("cat");