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
@ttsuru the pagination of content in the built-in WordPress way relies heavily on globals and WP_Query::setup_postdata(). For the 2.x branches (where get_post et al. will no longer exist), this is fixed with Timber\Post::setup(), but in this case, the easiest out is probably to continue using \Timber::query_post() for now on a 1.9.x project as this returns a QueryIterator that will handle all this for you automatically.
@gchtr / @jarednova / @palmiak Possibly a todo for the 2.x . docs? Paginated content works provided the users uses the 'magic' $context['post'], but the docs should probably mention that it calls Post::setup and that a developer should call this if they want parity in function.
Expected behavior
{{ paged_content }}
works withnew Timber\Post()
Actual behavior
{{ paged_content }}
withnew Timber\Post()
shows the full text of the article.Steps to reproduce behavior
Don't work
Work
What version of WordPress, PHP and Timber are you using?
Timber 1.9.4
How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)
Composer/Packagist
The text was updated successfully, but these errors were encountered: