Support » Plugins and Hacks » Infinite-scroll in a single page of a Cutom Post Type

  • Hi all!

    Im using the plugin Infinite Scroll: http://wordpress.org/extend/plugins/infinite-scroll

    And I need to use the feature in a single page of a cutom post type: single-celebrities.php

    I found this code, but I cant find the way to activate the infinite scroll in this kind of page.

    function my_load_infinite_scroll( $load_infinite_scroll ) {
        if( is_page('news') )
            return true;
        return $load_infinite_scroll;
    }
    add_filter('infinite_scroll_load_override', 'my_load_infinite_scroll');

    Any idea?

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Infinite-scroll in a single page of a Cutom Post Type’ is closed to new replies.