Skip to main content
The Hinchables (Inflatables) custom post type is the core content type for managing your rental catalog. Each hinchable represents an individual inflatable item available for rent.

Registration

The hinchables post type is registered in functions.php using the zalbi_register_hinchables() function:
functions.php (lines 137-150)
// Registrar el Post Type "Hinchable" (Usando el slug "catalogo")
function zalbi_register_hinchables() {
    $args = array(
        'labels' => array( 'name' => 'Hinchables', 'singular_name' => 'Hinchable' ),
        'public' => true,
        'has_archive' => false,
        'menu_icon' => 'dashicons-smiley',
        'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt' ),
        // SLUG GENÉRICO PARA SEO Y POLYLANG
        'rewrite' => array( 'slug' => 'catalogo' ), 
    );
    register_post_type( 'hinchable', $args );
}
add_action( 'init', 'zalbi_register_hinchables' );

Configuration Parameters

labels
array
Display labels for the post type in the WordPress admin
  • name: “Hinchables” (plural)
  • singular_name: “Hinchable” (singular)
public
boolean
default:"true"
Makes the post type publicly accessible on the frontend and in the admin
has_archive
boolean
default:"false"
Disables the archive page. Individual inflatables are displayed via custom templates, not an archive listing
menu_icon
string
default:"dashicons-smiley"
The Dashicons icon displayed in the WordPress admin menu
supports
array
Features supported by the post type:
  • title - Post title
  • editor - Visual editor for description
  • thumbnail - Featured image support
  • excerpt - Short description/summary
rewrite.slug
string
default:"catalogo"
URL slug for individual hinchables. URLs will be structured as /catalogo/hinchable-name/

Creating a Hinchable

1

Navigate to Hinchables

In the WordPress admin, go to Hinchables > Add New
2

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
3

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
4

Assign Type

Select one or more Tipos de Hinchable (types) to categorize the inflatable. See Taxonomies for details.
5

Publish

Click Publish to make the hinchable live at /catalogo/your-hinchable-name/

URL Structure

The catalogo slug is intentionally generic for SEO and multilingual support with Polylang.
Individual hinchables are accessible at:
https://yoursite.com/catalogo/hinchable-name/
For example:
  • /catalogo/castillo-medieval/
  • /catalogo/tobogan-acuatico/
  • /catalogo/pista-americana/

Filtering by Type

Hinchables can be filtered using the tipo_hinchable taxonomy. See Taxonomies for implementation details. Example taxonomy archive URLs:
/tipo/castillos/
/tipo/toboganes/
/tipo/hinchables-acuaticos/

Template Hierarchy

WordPress will look for templates in this order:
  1. single-hinchable.php - Specific template for hinchables
  2. single.php - Generic single post template
  3. singular.php - Fallback singular template
  4. index.php - Ultimate fallback

Querying Hinchables

Get All Hinchables

$args = array(
    'post_type' => 'hinchable',
    'posts_per_page' => -1,
    'orderby' => 'title',
    'order' => 'ASC'
);
$hinchables = new WP_Query( $args );

if ( $hinchables->have_posts() ) {
    while ( $hinchables->have_posts() ) {
        $hinchables->the_post();
        // Display hinchable
    }
    wp_reset_postdata();
}

Filter by Type

$args = array(
    'post_type' => 'hinchable',
    'tax_query' => array(
        array(
            'taxonomy' => 'tipo_hinchable',
            'field' => 'slug',
            'terms' => 'castillos'
        )
    )
);
$castillos = new WP_Query( $args );
if ( has_post_thumbnail() ) {
    the_post_thumbnail( 'large', array( 'class' => 'hinchable-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 generic catalogo slug allows Polylang to handle translations:
  • Spanish: /catalogo/castillo-medieval/
  • English: /catalog/medieval-castle/
  • French: /catalogue/chateau-medieval/
Ensure Polylang is configured to translate the hinchable post type in Settings > Polylang > Post Types.

Build docs developers (and LLMs) love