{"action":"opened","issue":{"url":"https://api.github.com/repos/uncatcrea/wp-appkit/issues/231","repository_url":"https://api.github.com/repos/uncatcrea/wp-appkit","labels_url":"https://api.github.com/repos/uncatcrea/wp-appkit/issues/231/labels{/name}","comments_url":"https://api.github.com/repos/uncatcrea/wp-appkit/issues/231/comments","events_url":"https://api.github.com/repos/uncatcrea/wp-appkit/issues/231/events","html_url":"https://github.com/uncatcrea/wp-appkit/issues/231","id":159013168,"number":231,"title":"Allow using standard pagination for post lists","user":{"login":"mleroi","id":4905913,"avatar_url":"https://avatars.githubusercontent.com/u/4905913?v=3","gravatar_id":"","url":"https://api.github.com/users/mleroi","html_url":"https://github.com/mleroi","followers_url":"https://api.github.com/users/mleroi/followers","following_url":"https://api.github.com/users/mleroi/following{/other_user}","gists_url":"https://api.github.com/users/mleroi/gists{/gist_id}","starred_url":"https://api.github.com/users/mleroi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mleroi/subscriptions","organizations_url":"https://api.github.com/users/mleroi/orgs","repos_url":"https://api.github.com/users/mleroi/repos","events_url":"https://api.github.com/users/mleroi/events{/privacy}","received_events_url":"https://api.github.com/users/mleroi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mleroi","id":4905913,"avatar_url":"https://avatars.githubusercontent.com/u/4905913?v=3","gravatar_id":"","url":"https://api.github.com/users/mleroi","html_url":"https://github.com/mleroi","followers_url":"https://api.github.com/users/mleroi/followers","following_url":"https://api.github.com/users/mleroi/following{/other_user}","gists_url":"https://api.github.com/users/mleroi/gists{/gist_id}","starred_url":"https://api.github.com/users/mleroi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mleroi/subscriptions","organizations_url":"https://api.github.com/users/mleroi/orgs","repos_url":"https://api.github.com/users/mleroi/repos","events_url":"https://api.github.com/users/mleroi/events{/privacy}","received_events_url":"https://api.github.com/users/mleroi/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/uncatcrea/wp-appkit/milestones/11","html_url":"https://github.com/uncatcrea/wp-appkit/milestones/0.6","labels_url":"https://api.github.com/repos/uncatcrea/wp-appkit/milestones/11/labels","id":1461209,"number":11,"title":"0.6","description":"","creator":{"login":"mleroi","id":4905913,"avatar_url":"https://avatars.githubusercontent.com/u/4905913?v=3","gravatar_id":"","url":"https://api.github.com/users/mleroi","html_url":"https://github.com/mleroi","followers_url":"https://api.github.com/users/mleroi/followers","following_url":"https://api.github.com/users/mleroi/following{/other_user}","gists_url":"https://api.github.com/users/mleroi/gists{/gist_id}","starred_url":"https://api.github.com/users/mleroi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mleroi/subscriptions","organizations_url":"https://api.github.com/users/mleroi/orgs","repos_url":"https://api.github.com/users/mleroi/repos","events_url":"https://api.github.com/users/mleroi/events{/privacy}","received_events_url":"https://api.github.com/users/mleroi/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":30,"state":"open","created_at":"2015-12-15T12:59:04Z","updated_at":"2016-06-07T20:10:45Z","due_on":"2016-05-30T22:00:00Z","closed_at":null},"comments":0,"created_at":"2016-06-07T20:10:45Z","updated_at":"2016-06-07T20:10:45Z","closed_at":null,"body":"Currently, WP-AppKit \"Get More Posts\" feature on post lists is based on an \"Infinite Scroll\" type of pagination: we retrieve posts before the last post in the list (by passing its id in \"before_id\" param).\r\nThis is a known trick that avoids post duplication in displayed list when getting page>1 and a new post was created since page 1 was displayed.\r\n\r\nBut some use cases require that \"Get More Posts\" is based on the standard WP pagination (ie the one used by default in WP_Query: \"paged\" param). \r\nFor example we need this kind of pagination when doing search queries, which are natively not ordered on post dates but on `wp_posts.post_title LIKE '%search_string%' DESC`, which makes our \"Infinite scroll\" pagination crash.\r\n\r\nSo we should add a way for themes to activate \"Standard\" pagination instead of \"Infinite Scroll\" pagination for post list components (and this choice should be possible separately for each post list component)."}}
{"actor":{"display_login":"mleroi"}}