Skip to content

Instantly share code, notes, and snippets.

@coderaaron
Created February 3, 2017 22:00
Show Gist options
  • Save coderaaron/f6aa7ef9c30275de6771e7a20990dd3f to your computer and use it in GitHub Desktop.
Save coderaaron/f6aa7ef9c30275de6771e7a20990dd3f to your computer and use it in GitHub Desktop.
Super-simple partials
require_once( WASHU_PPI_PLUGIN_DIR . 'templates/partials/ppi-loop.php' );
...
require( WASHU_PPI_PLUGIN_DIR . 'templates/partials/' . get_post_type() . '.php' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment