Created
June 12, 2018 18:35
-
-
Save mdailey77/920623654a53d6b0e836583a86b0cdc6 to your computer and use it in GitHub Desktop.
custom WordPress page template for displaying on-demand webinar events
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template Name: All On Demand Webinars | |
* | |
* @package WordPress | |
*/ | |
get_header(); | |
?> | |
<div id="post-type-header"> | |
<div class="extended-content-container"> | |
<div class="extended-content"> | |
<?php // Get our post type header | |
echo custom_post_type_header( 'Events', 'event_overview', 'events', 'taxonomy-menu', false ); | |
?> | |
</div> | |
</div> | |
<?php wds_custom_breadcrumbs(); ?> | |
</div> | |
<div id="primary" class="site-content"> | |
<div class="inner"> | |
<div id="content" role="main"> | |
<div id="webinars-lower"> | |
<div id="archive-sidebar"> | |
<h3>Webinar Categories</h3> | |
<?php | |
$children = wp_list_pages( 'title_li=&child_of=14696&echo=0' ); | |
if ( $children) : ?> | |
<ul class="webinar-categories"> | |
<li><a href="<? echo get_permalink( 14696 ) ?>">All Webinars</a></li> | |
<?php echo $children; ?> | |
</ul> | |
<?php endif; ?> | |
</div> | |
<div id="ondemand-webinars"> | |
<h2 class="archive-header">All On-Demand Webinars</h2> | |
<?php retrieve_ondemand_webinars_all(); ?> | |
</div> | |
</div> | |
</div><!-- #content --> | |
</div><!-- .inner --> | |
</div><!-- #primary --> | |
<?php get_footer(); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment