Skip to content

Instantly share code, notes, and snippets.

@ericnicolaas
Forked from tibicostan/single-campaign.php
Last active March 25, 2016 23:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericnicolaas/d49c8ffbb7e3d790e765 to your computer and use it in GitHub Desktop.
Save ericnicolaas/d49c8ffbb7e3d790e765 to your computer and use it in GitHub Desktop.
<?php get_header() ?>
<?php
global $porto_settings, $porto_layout;
wp_reset_postdata();
?>
<div id="content" role="main">
<?php if (have_posts()) : the_post(); ?>
<?php get_template_part('content', 'post-full'); ?>
<?php
if ($porto_settings['post-related']) :
$related_posts = porto_get_related_posts($post->ID);
if ($related_posts->have_posts()) : ?>
<?php endif;
endif;
endif; ?>
</div>
<?php get_sidebar( 'campaigns' ) ?>
<?php get_footer() ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment