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 20 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.

Do you have the TypeRocket Framework for WordPress plugin installed? Download the latest version here. Got it? Great!

Let's get you started using TypeRocket fast. To make sure TypeRocket is working add the following code to your active theme's functions.php file.

// 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');

Nice right? As you can see adding custom fields and post types is easy with TypeRocket.

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

Ready to start adding your own code? Remove or modify the sample code.

Next up, check out our videos or create your own post type following our tutorials.

Share this on