Skip to main content

WordPress

WordPress Library should be installed by default in Clutch projects. But if you want to manually install or update to the latest version it can be downloaded from below:

WordPress library adds these queries in Clutch:

Category

Function name

Description

PAGES

getPages

Get pages from WordPress REST API

getPageBySlug

Get a page from WordPress REST API by page slug

getFrontPage

Get the front page from WordPress REST API

MENUS

getMenu

Fetches a single menu by location

MEDIA

getMedia

Get media from WordPress REST API

getMediaItemBySlug

Get a media item from WordPress REST API by media slug

getMediaItemById

Get a media item from WordPress REST API by media ID

TAXONOMIES

getTaxonomyTerms

Get categories from WordPress REST API

getTaxonomyTermBySlug

Get a term from WordPress REST API by term slug and type

getTaxonomyTermById

Get a term from WordPress REST API by term id and type

USERS

getUsers

Get users from WordPress REST API

getUserBySlug

Get a user from WordPress REST API by user slug

getUserById

Get a user from WordPress REST API by user ID

SEARCH

search

search WordPress Library search

POSTS

getPosts

Get posts from WordPress REST API

getPostBySlug

Get a post from WordPress REST API by post slug

getPostById

Get a post from WordPress REST API by post ID

Still need help? Ask the team