tutor-course.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | |
| 4 | if ( have_posts() ) : |
| 5 | /* Start the Loop */ |
| 6 | |
| 7 | tutor_course_loop_start(); |
| 8 | |
| 9 | while ( have_posts() ) : the_post(); |
| 10 | /** |
| 11 | * @hook tutor_course/archive/before_loop_course |
| 12 | * @type action |
| 13 | * Usage Idea, you may keep a loop within a wrap, such as bootstrap col |
| 14 | */ |
| 15 | do_action('tutor_course/archive/before_loop_course'); |
| 16 | |
| 17 | tutor_load_template('loop.course'); |
| 18 | |
| 19 | /** |
| 20 | * @hook tutor_course/archive/after_loop_course |
| 21 | * @type action |
| 22 | * Usage Idea, If you start any div before course loop, you can end it here, such as </div> |
| 23 | */ |
| 24 | do_action('tutor_course/archive/after_loop_course'); |
| 25 | endwhile; |
| 26 | |
| 27 | tutor_course_loop_end(); |
| 28 | |
| 29 | endif; |
| 30 |