WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Infinite Scroll] Using in a single page of a Cutom Post Type (1 post)

  1. jllamosas
    Member
    Posted 1 year ago #

    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');

    And I need to change tu use in a single custom post type page. I found this code, but it doesnt run.

    function my_load_infinite_scroll( $load_infinite_scroll ) {
         if( is_singular( 'celebrities' ))
            return true;
        return $load_infinite_scroll;
    }

    Some help?

Topic Closed

This topic has been closed to new replies.

About this Topic