We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
get_field method of \Timber\Post returns \Timber\Post even when default post class is overriden by Timber\PostClassMap filter.
\Timber\Post
Timber\PostClassMap
This can be easily fixed by using get_class($this) instead of __CLASS__ in get_field definition when method convert() is used.
get_class($this)
__CLASS__
get_field
convert()
The text was updated successfully, but these errors were encountered:
We’ve reworked how post class filtering works in Timber 2.0, see https://timber.github.io/docs/v2/guides/class-maps/. If this issue still exists in 2.0, please open a new issue.
Sorry, something went wrong.
No branches or pull requests
get_field method of
\Timber\Post
returns\Timber\Post
even when default post class is overriden byTimber\PostClassMap
filter.This can be easily fixed by using
get_class($this)
instead of__CLASS__
inget_field
definition when methodconvert()
is used.The text was updated successfully, but these errors were encountered: