Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/marcoscenteno89/marccent-content/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Custom post types, their fields and loops for Marccent sites, with no build step. Requires Marccent Blocks (WordPress won't activate it without): its blocks and the Marccent theme's styles and scripts come from there, one shared copy at one version, so this plugin bundles none of it.
- Types and fields from one JSON spec (Settings → Content, or the
marccent_content_specfilter): post types, taxonomies, and fields of type string, text, number, url, email, date, boolean, image or select. Fields can go on existing types (post, page) too, and are edited in a Fields panel beside each post. - Loop block: a query (type, count, order, also by a field, terms) whose item you design once with any blocks; it repeats in the theme's grid.
- The post's values in the item: the Field block (with formats: currency, number, date, words…),
{{ tokens }}in any block ({{ title }},{{ price | currency }},{{ image:medium }}, a button linking to{{link}}), or block bindings with themarccent/fieldsource.
{
"currency": "$",
"types": {
"project": {
"label": "Projects", "singular": "Project", "slug": "projects",
"taxonomies": { "project_service": { "label": "Services" } },
"fields": { "city": { "type": "string" }, "price": { "type": "number" }, "before": { "type": "image" } }
}
}
}
Works with Marccent Blocks. Requires WordPress 6.9+.