Registration
The hinchables post type is registered infunctions.php using the zalbi_register_hinchables() function:
functions.php (lines 137-150)
Configuration Parameters
Display labels for the post type in the WordPress admin
- name: “Hinchables” (plural)
- singular_name: “Hinchable” (singular)
Makes the post type publicly accessible on the frontend and in the admin
Disables the archive page. Individual inflatables are displayed via custom templates, not an archive listing
The Dashicons icon displayed in the WordPress admin menu
Features supported by the post type:
title- Post titleeditor- Visual editor for descriptionthumbnail- Featured image supportexcerpt- Short description/summary
URL slug for individual hinchables. URLs will be structured as
/catalogo/hinchable-name/Creating a Hinchable
Add Basic Information
- Title: Name of the inflatable (e.g., “Castillo Medieval Grande”)
- Content: Full description with features, dimensions, capacity
- Excerpt: Short summary for catalog listings
Set Featured Image
Upload a high-quality image in the Featured Image section. This will be used:
- In catalog grids
- On the individual product page
- In related product sections
Assign Type
Select one or more Tipos de Hinchable (types) to categorize the inflatable. See Taxonomies for details.
URL Structure
The
catalogo slug is intentionally generic for SEO and multilingual support with Polylang./catalogo/castillo-medieval//catalogo/tobogan-acuatico//catalogo/pista-americana/
Filtering by Type
Hinchables can be filtered using thetipo_hinchable taxonomy. See Taxonomies for implementation details.
Example taxonomy archive URLs:
Template Hierarchy
WordPress will look for templates in this order:single-hinchable.php- Specific template for hinchablessingle.php- Generic single post templatesingular.php- Fallback singular templateindex.php- Ultimate fallback
Querying Hinchables
Get All Hinchables
Filter by Type
Get Featured Image
Admin Menu Location
The Hinchables post type appears in the WordPress admin sidebar with:- Icon: Smiley face (dashicons-smiley)
- Position: Below Posts, above Media
- Submenu items:
- All Hinchables
- Add New
- Tipos de Hinchable (taxonomy)
The
has_archive is set to false, meaning there’s no automatic /catalogo/ archive page. You’ll need to create a custom page template or use a custom query on your homepage/catalog page.Integration with Polylang
The genericcatalogo slug allows Polylang to handle translations:
- Spanish:
/catalogo/castillo-medieval/ - English:
/catalog/medieval-castle/ - French:
/catalogue/chateau-medieval/
hinchable post type in Settings > Polylang > Post Types.