Support » Plugin: Timber » Register fetched data (not in database) in PostQuery

  • Hello. I am currently using an API to fetch posts from a different site, so they are up to date with the current state on that site. The problem is that I’m using the post title field to fetch the correct ID from the API. This means that no title or content data is stored in the database.

    Is there a way I can register this data so that Timber PostQuery objects will also fetch these pages properly? I am unable to access or alter the result of $result = new Timber\PostQuery() afterwards, since these fields are protected and private.

    Thanks in advance!

  • You must be logged in to reply to this topic.