An updated theme (based on Atticus Finch) for ClassicPress
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
746 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <?php
  2. /**
  3. * Jetpack Compatibility File
  4. * See: https://jetpack.me/
  5. *
  6. * @package Portage
  7. */
  8. /**
  9. * Add theme support for Infinite Scroll.
  10. * See: https://jetpack.me/support/infinite-scroll/
  11. */
  12. function portage_jetpack_setup() {
  13. add_theme_support( 'infinite-scroll', array(
  14. 'container' => 'main',
  15. 'render' => 'portage_infinite_scroll_render',
  16. 'footer' => 'page',
  17. ) );
  18. } // end function portage_jetpack_setup
  19. add_action( 'after_setup_theme', 'portage_jetpack_setup' );
  20. /**
  21. * Custom render function for Infinite Scroll.
  22. */
  23. function portage_infinite_scroll_render() {
  24. while ( have_posts() ) {
  25. the_post();
  26. get_template_part( 'template-parts/content', get_post_format() );
  27. }
  28. } // end function portage_infinite_scroll_render