Skip to main content
Code Tutorial

Getting Started

Welcome to TypeRocket.

TypeRocket is a framework crafted to empower your WordPress development workflow. With TypeRocket you can:

  • Add custom post types and taxonomies.
  • Access over 27+ custom fields like repeaters and text boxes.
  • Develop using MVC.
  • Create admin pages.
  • Use custom database tables.
  • Add custom routes.
  • Enable and Gutenberg for select post types.
  • Create forms on the front-end of your website.
  • And a lot more.

To get started you will need to install TypeRocket.

Once you have TypeRocket installed, make a post type to see TypeRocket in action. Add the following code to your active theme's functions.php file and your post type will be registered.

// Adds a team post type with custom fields
$team = tr_post_type('Person', 'Team')
    ->setTitlePlaceholder( 'Enter full name here' )
    ->setArgument('supports', ['title'] );

tr_meta_box('Team Details')->apply($team);

function add_meta_content_team_details() {
    $form = tr_form();
    echo $form->text('Job Title');
    echo $form->editor('Description');

Now, look at your WordPress admin to see your new post type. Nice right? As you can see adding custom fields and post types is easy with TypeRocket.

Note, flush your WordPress Permalinks. Flushing your permalinks is a requirement WordPress has when you add a new post type to your site.

Access More TypeRocket

Join our community mailing list and get notified before anyone else. Get videos and more.

By using our website you agree to our Cookie policy.