Skip to content

_paging.links empty? #332

Closed
Closed
@wa-rren-dev

Description

@wa-rren-dev

Having an issue where a basic request as below:

 wp.posts().perPage(2)
  .then((data) => {
    console.log(data)
  }

isn't returning a populated links object. The total and totalPages are coming in as expected but links is empty.

data = [
  { post },
  { post },
  _paging: {
    links: {},
    total: "26",
    totalPages: "13"
}]

Running WordPress 4.8 and node-wpapi 1.1.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions