Exemplo n.º 1
0
 * This runs before the lesson items in the loop-lesson.php template.
 *
 * @since 1.9.0
 *
 * @hooked Sensei()->lesson->lesson_tag_archive_description - 11
 * @hooked Sensei()->lesson->the_archive_header - 20
 */
do_action('sensei_loop_lesson_inside_before');
?>


    <?php 
//Loop through all lessons
while (have_posts()) {
    the_post();
    sensei_load_template_part('content', 'lesson');
}
?>

    <?php 
/**
 * This runs inside the <ul> after the lesson items in the loop-lesson.php template.
 *
 * @since 1.9.0
 */
do_action('sensei_loop_lesson_inside_after');
?>

</section>

<?php 
Exemplo n.º 2
0
/**
 * This runs before the post type items in the loop.php template. It
 * runs within the courses loop <ul> tag.
 *
 * @since 1.9.0
 */
do_action('sensei_loop_course_inside_before');
?>

    <?php 
/*
 * Loop through all courses
 */
while (have_posts()) {
    the_post();
    sensei_load_template_part('content', 'course');
}
?>

    <?php 
/**
 * This runs after the post type items in the loop.php template. It runs
 * only for the specified post type
 *
 * @since 1.9.0
 */
do_action('sensei_loop_course_inside_after');
?>

</ul>
Exemplo n.º 3
0
    <?php 
/**
 * This runs before the post type items in the loop.php template. It
 * runs within the message loop <ul> tag.
 *
 * @since 1.9.0
 */
do_action('sensei_loop_message_inside_before');
?>

    <?php 
// loop through all messages
while (have_posts()) {
    the_post();
    sensei_load_template_part('content', 'message');
}
?>

    <?php 
/**
 * This runs after the post type items in the loop.php template. It runs
 * only for the specified post type
 *
 * @since 1.9.0
 */
do_action('sensei_loop_message_inside_after');
?>

</div>