Pro Templates Introduction

API Press Pro includes a collection of ready-to-use templates that let you turn raw API responses into visual layouts – such as tables, galleries, cards or carousels – without writing code.

Each template has its own layout, styling and configurable settings. You simply map your API data fields to the template’s available placeholders, and API Press handles the rendering automatically on the front end.

You can even build your own templates, or copy existing templates into your theme folder and modify as needed.

What Are Templates?

Templates are PHP files stored inside the plugin’s /templates/ directory.

Within each template, we can define:

  • Slots – the data fields available for mapping (e.g. title, image, link).
  • Settings – adjustable options such as number of columns, pagination limit, or theme.
  • Markup – the HTML layout that determines how your API data appears.

When you select a template in the Display tab your API, API Press dynamically populates it using your mapped fields and selected settings.

Available Templates in Pro

  • Table – display structured data with sorting, filters and pagination (powered by Tabulator.js).
  • Gallery – image-focused grid layout, ideal for product or photo APIs.
  • Cards – flexible grid of text + image cards, perfect for profiles, listings or posts.
  • List – similar to cards, but displayed in a list format.
  • Carousel – slide-based display for featured or rotating content. Perfect for small logo carousels.
  • Slider – similar to Carousel but for larger images and/or text.

How to Choose a Template

  1. Open any API in your WordPress admin.
  2. Go to the Display tab.
  3. Under Template, select one of the Pro templates from the dropdown.
  4. Click Save to apply the template.

After saving, you’ll see a Template Settings panel appear beneath – showing the specific options available for that layout.

Where Templates Are Stored

Template files are located in:

/wp-content/plugins/api-press-pro/templates/

Each file is a standalone PHP template, for example:

table.php
gallery.php
cards.php
list.php
carousel.php
slider.php

You can duplicate and modify these files to create your own custom templates (see Creating a Custom Template).