Automattic / Automattic/slush-theme-pattern-library

Infinite Scroll in generated themes doesn't load new posts

Open
#85 0 comments 0 reactions 0 assignees View on GitHub
[type] bug Function
Dominant language
PHP
Stars
11
Forks
3
PR merge metrics
No merged PRs in 30d

Description

When generating a new theme, the default IS setup doesn't load new posts, either in scroll or scroll-to-click style. When you click on the button, no new posts are added to the page (in source or visibly) and the button disappears.

See it in (in)action:

![infinite-scroll](https://cloud.githubusercontent.com/assets/376315/10369027/0426309e-6dd0-11e5-9a60-d75abcaefc62.gif)

The first theme is a "base theme" generated with the pattern library; the second theme is an _s theme generated by underscores.me.

I initially discovered this using the "business" type, but I tested with other types & it seems consistent across the different types.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in a generated base theme and an _s theme, using both scroll and scroll-to-click styles. Inspect the default infinite-scroll setup and verify that clicking or scrolling appends new posts to the page and leaves the control behaving correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.