You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simple question. I'm working on a site developed by someone else. It routes category archive listings through index.php to a category-{category slug}.twig file. The twig file includes another twig file :
{% include '_pagination.twig' with { pagination: pagination } %}
that looks very similar to the standard query example in the docs.
We created ~15 test posts for a new category, but cannot get any pagination to show up. Index.php contains $context['pagination'] = Timber::get_pagination();. But a dump of $context['pagination'] reveals nothing but empty arrays and no pages.
Other categories follow the exact same pattern, and pagination works just as one would expect. What could be preventing pagination for this one category?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Simple question. I'm working on a site developed by someone else. It routes category archive listings through index.php to a category-{category slug}.twig file. The twig file includes another twig file :
{% include '_pagination.twig' with { pagination: pagination } %}
that looks very similar to the standard query example in the docs.
We created ~15 test posts for a new category, but cannot get any pagination to show up. Index.php contains
$context['pagination'] = Timber::get_pagination();
. But a dump of$context['pagination']
reveals nothing but empty arrays and no pages.Other categories follow the exact same pattern, and pagination works just as one would expect. What could be preventing pagination for this one category?
Beta Was this translation helpful? Give feedback.
All reactions