Registering a CPT as a source
- Go to Blockli → CPT Sources.
- Click Add Source.
- Select the post type from the dropdown (only publicly queryable CPTs are listed).
- Configure the source:
- Label — display name shown in the app
- Fields — which post fields and meta to include in the API response
- Filter — optional taxonomy or meta query to filter which posts appear
- Order — sort order for the list
- Save.
/wp-json/blockli-mobile/v1/cpt-sources/:source-key.
Using CPT data in the app
In App Pages (no-code)
Use the CPT List block in the block editor to embed a filtered CPT list in any App Page. Configure the block to reference your registered source.In custom screens (SDK)
With the Blockli SDK, useuseCollection or useDetail to fetch CPT data in a custom theme screen:
useDetail:
item.__raw for advanced use.
Two tiers of CPT support
Tier 1 requires only plugin + Studio configuration. Tier 2 requires building a custom binary with the Blockli SDK.
Access control
CPT sources respect WordPress post status and visibility. Onlypublished posts are returned. If a post requires a capability check (e.g. membership gating), the plugin enforces it before including the post in the response.
