WordPress Infinite Scroll – Problem – Load more posts

  • Unknown's avatar

    Hello everybody.
    I have my web site with wordpress. I’m new develping themes and i’m trying add “Jetpack Infinite scroll” plugin. I have a custom post type: portfolio. It’s contain the following archives: single-portfolio.php, archive-portfolio.php and content-portfolio.php. Portfolio works fine, all post are showed but scroll doesn’t do nothing.
    This is my codec:

    functions.php:

    `function idenvas_infinite_scroll_init() {
    add_theme_support( ‘infinite-scroll’, array(
    ‘type’ => ‘scroll’,
    ‘container’ => ‘portfolio’,
    ‘port_per_page’ => 12,
    ) );
    }
    add_action( ‘after_setup_theme’, ‘idenvas_infinite_scroll_init’ );`

    archive-portfolio.php:

    `<div id=”portfolio”>
    <ul>
    <?php
    while (have_posts()) : the_post();
    get_template_part( ‘content-portfolio’, get_post_format() );
    endwhile;
    ?>
    </ul>

    </div>`

    content-portfolio.php:

    `<li>
    <?php if ( has_post_thumbnail() ) { ?>
    <a href=”<?php the_permalink();?>”>
    <?php the_post_thumbnail( ‘portfolio_thumbs’ ); } ?>
    </a>
    </li>`

    Thank’s guys for help.

    The blog I need help with is: (visible only to logged in users)

  • Hi there. I’m afraid you’re in the wrong forum. This support forum is only for free WordPress.com blogs while you appear to be working on a self-hosted WordPress.ORG install (we don’t have any ftp access or plugin installation capability on WordPress.com, nor can we create and/or install our own themes). WordPress.com and WordPress.org are completely separate and different: http://en.support.wordpress.com/com-vs-org/

    Please visit the WordPress.org support forum for assistance as we won’t be able to help you here: http://wordpress.org/support/ If you don’t already have a username on that forum, click the register button in the upper right corner so you can post in that forum.

  • The topic ‘WordPress Infinite Scroll – Problem – Load more posts’ is closed to new replies.