Skip to content

Make $wp_query->found_posts available through Timber::get_posts() #1257

@jphilung

Description

@jphilung

On queries that do not specify arguments related to posts_per_page and which uses the default posts_per_page value, I can't find a way of getting the total number of posts found.

#425 references this issue, but the count in the array returned is at maximum the number specified by the default posts_per_page.

For the moment, I've resorted to using the global $wp_query variable and get the value from the there.

I'd like to contribute to the repo by adding this feature, how would I contribute ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions