Skip to content

Instantly share code, notes, and snippets.

<?php get_header() ?>
<?php
global $porto_settings;
?>
<div id="content" role="main">
<?php /* The loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<article <?php post_class(); ?>>
<?php get_header() ?>
<?php
global $porto_settings;
$post_layout = $porto_settings['post-layout'];
$post_infinite = $porto_settings['blog-infinite'];
if ($post_infinite) {
global $wp_rewrite;
<?php
/**
* Put this in your theme or child theme's functions.php file.
*/
function en_register_campaigns_sidebar() {
$args = array(
'id' => 'campaigns-sidebar',
'name' => __( 'Campaigns Sidebar', 'holycrosss.staging.wpengine.com' ),
<?php get_header() ?>
<?php
global $porto_settings, $porto_layout;
wp_reset_postdata();
?>
<div id="content" role="main">