New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timber::get_post do not work after updating WP from 5.8.5 to 6.11 #2693
Comments
|
Is there a reason why you’re still on Timber 1.3.4? The most current stable version is actually 1.22.1. I suggest you first update Timber and see if that solves the issue. |
Oof. Your theme seems to ship a lot of dependencies that probably don't get updated. You should ask your theme vendor to update all the dependencies first. It that doesn't work, check out what's in the 'lib' and 'vendor' folders and see if the same files are in the latest release of Timber. |
Seems to be stale and is based on a very old issue. Can be closed in my opinion. |
After updating WP from 5.8.5 to 6.1.1
Timber::get_post and Timber::get_posts return null on posts, categories, and tags.
Expected behavior
return non empty WP_Query with actual post / taxonomy
Actual behavior
global $wp_query; also returns null
get_the_ID() return false or 0
Steps to reproduce behavior
just update WP from 5.8.5 to 6.1.1
What version of WordPress, PHP, and Timber are you using?
Example: WordPress 6.1.1, PHP 7.4, Timber 1.3.4
How did you install Timber? (for example, from GitHub, Composer/Packagist, WP.org?)
Timber installed as a lib inside the project
The text was updated successfully, but these errors were encountered: