{"action":"created","issue":{"url":"https://api.github.com/repos/dcooney/wordpress-ajax-load-more/issues/103","labels_url":"https://api.github.com/repos/dcooney/wordpress-ajax-load-more/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/dcooney/wordpress-ajax-load-more/issues/103/comments","events_url":"https://api.github.com/repos/dcooney/wordpress-ajax-load-more/issues/103/events","html_url":"https://github.com/dcooney/wordpress-ajax-load-more/issues/103","id":127914921,"number":103,"title":"Custom counters","user":{"login":"cjhmdm","id":9292513,"avatar_url":"https://avatars.githubusercontent.com/u/9292513?v=3","gravatar_id":"","url":"https://api.github.com/users/cjhmdm","html_url":"https://github.com/cjhmdm","followers_url":"https://api.github.com/users/cjhmdm/followers","following_url":"https://api.github.com/users/cjhmdm/following{/other_user}","gists_url":"https://api.github.com/users/cjhmdm/gists{/gist_id}","starred_url":"https://api.github.com/users/cjhmdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjhmdm/subscriptions","organizations_url":"https://api.github.com/users/cjhmdm/orgs","repos_url":"https://api.github.com/users/cjhmdm/repos","events_url":"https://api.github.com/users/cjhmdm/events{/privacy}","received_events_url":"https://api.github.com/users/cjhmdm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-21T12:33:25Z","updated_at":"2016-01-21T14:37:20Z","closed_at":null,"body":"Hello,\r\nWould it be possible to add support for custom counters that reset on each \"page\" load?\r\n\r\nfor instance, a simple counter like this:\r\n\r\n`<?php \r\n  $i=0; while (have_posts() ) : the_post();\r\n    // do stuff\r\n  $i++; endwhile;\r\n?>\r\n`\r\n\r\nNow, I know you provide the $alm_item counter, but this doesn't reset when a new \"page\" of content is loaded, which makes it almost impossible to make layout modifications based on the counter."},"comment":{"url":"https://api.github.com/repos/dcooney/wordpress-ajax-load-more/issues/comments/173587015","html_url":"https://github.com/dcooney/wordpress-ajax-load-more/issues/103#issuecomment-173587015","issue_url":"https://api.github.com/repos/dcooney/wordpress-ajax-load-more/issues/103","id":173587015,"user":{"login":"cjhmdm","id":9292513,"avatar_url":"https://avatars.githubusercontent.com/u/9292513?v=3","gravatar_id":"","url":"https://api.github.com/users/cjhmdm","html_url":"https://github.com/cjhmdm","followers_url":"https://api.github.com/users/cjhmdm/followers","following_url":"https://api.github.com/users/cjhmdm/following{/other_user}","gists_url":"https://api.github.com/users/cjhmdm/gists{/gist_id}","starred_url":"https://api.github.com/users/cjhmdm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjhmdm/subscriptions","organizations_url":"https://api.github.com/users/cjhmdm/orgs","repos_url":"https://api.github.com/users/cjhmdm/repos","events_url":"https://api.github.com/users/cjhmdm/events{/privacy}","received_events_url":"https://api.github.com/users/cjhmdm/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T14:37:20Z","updated_at":"2016-01-21T14:37:20Z","body":"Thanks dcooney, but this variable returns empty for me."}}