Skip to content

get_page method doesn't find the post with #2

@tanigami

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

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