Skip to content

get_page method doesn't find the post with #2

Description

@tanigami

When "Different languages in directories" is selected for "Language URL format" in WPML, get_page doesn't find the post with slug set to the pagename.

e.g. http://example.com/en/api/get_page/?slug=abc

returns:

{
  status: "error",
  error: "Not found."
}

while it works fine with "id" specified like:
http://example.com/en/api/get_page/?id=1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions