Blog / plugins / Swift Templates – a straight forward alternative to WordPress templates hell

Swift Templates – a straight forward alternative to WordPress templates hell

Cristian Antohe
Last Updated: 28/04/16

I’m not a programmer… I do know some basic html and css, but I was nervous about messing with any of the templates in fear of making a bigger mess than where I started.

That’s a quote from one of our customers. We hear this quite a lot, not everybody is a developer. Most WordPress users just want something simple to understand and quick to get started with.

So you can’t help but wonder if the WordPress templates system couldn’t have been designed differently?

When you’re starting out it’s just painful. You would do anything BUT custom code your WordPress templates:

  • research 10+ plugins HOPING they can solve your problem
  • start using a lot of shortcodes inside the content area
  • consider reading that 5 parts HUGE article explaining how to custom code your own WordPress templates

You might even say, “Well, now that’s something you need to learn. Here’s the X or Y awesome tutorials on the matter!”

But the truth is, WordPress templates ARE complicated for a large number of WordPress users.
You’ll bump into:

As for learning about the WordPress templates system, all those articles and tutorials are just copying mechanisms. Just search Google for “develop WordPress theme” and you’ll find OVER 8 MILLION results!

Why does there have to be so many articles teaching you this? Should WordPress Templates really be so hard to understand?

Now imagine a system that will let you:

  • create listings of all your custom post types
  • single page templates that take into account your custom fields and metaboxes previously defined with WCK
  • without writing PHP and messing with any of the templates
  • no more playing around with a ton of shortcodes and plugins to list a simple custom post type or extra field.

Swift Templates for WordPress Creation Kit

swift_code
Swift Templates helps you build front-end templates directly from the WordPress admin UI, without writing a single line of PHP code.

It turns a time consuming and error prone process that was previously only accessible to developers into a straight forward UI that with a little bit of HTML and CSS allows you to:

  • create archive listings for your custom post types including pages or posts
  • modify the single cpt page template to include ALL your custom fields and metaboxes
  • overwrite the default listing for your all single CPT’s with the one defined above
  • overwrite the default content with a template that gives you access to your custom fields and metaboxes

How does it work?

There are two (2) main cases where you can use Swift Templates.

1. Archive listing of CPT’s

swift-templates

Useful for:

    • normal archive pages with your own design (not theme dependent). Just create your templates, create a normal page that will contain the archive and add the swift-template shortcode
    • simple listings of posts or custom post types in any landing page on your site

(using the swift-template shortcode). Create your templates, setup the arguments and put the swift-template shortcode

Quickly create templates for posts, pages or custom post types that can include default WordPress information (the title, content, thumbnail, etc.) or Custom Fields previously defined with WordPress Creation Kit.

You can create read-more links to point to a Swift dynamically generated single template OR the default permalink.

swift-templates-code

Also, another really useful function is the possibility to overwrite the default content on that post with the single template, thus applying that template for ALL default single listings of your custom post type.

2. Single page listing of CPT’s

swift_single_team_page

Useful for creating one off templates for pages or single posts / custom posts.

Let’s say you have a team page, with some extra fields for name, avatar and description. You can now overwrite the default page template with one that supports your extra fields available for that page only.

Coming soon:

  • new pre-processed swift tags that will list ALL fields in a metabox with a default HTML and CSS – you’ll be able to make perfectly styled templates in under a minute.
  • swift tags support for custom taxonomies
  • search tag for archive templates (have a CPT called books.. this will let you search inside them)

Got you interested? Here’s how to get it

As of today, Swift Templates is available with the latest version of WordPress Creation Kit PRO.

For all previous WCK PRO and Lifetime clients, Swift Templates will be available via automatic updates or the account page.

What about WordPress templates?

Swift templates are NOT a 1 to 1 replacement to WordPress templates. That would be stupid! WordPress templates are complicated for a reason, there are a LOT of things to display in WordPress and that flexibility comes with a lot of complexity.

However, we’re hoping for Swift Templates in combination with the rest of WordPress Creation Kit to take you 80% there in 80% of cases. If we can achieve that, I’ll be one happy developer!

From the blog

Related Articles

WordPress Automation Plugins

5 Best WordPress Automation Plugins Compared (Most Are Free)

Author: Colin Newcomer
Last Updated: December 12th, 2024

Searching for the best WordPress automation plugins? Automation plugins are kind of like Zapier…but for your WordPress site. You can use them in all kinds of different ways, including some of the following: Integrating two or more plugins or services that you're using. Automating important tasks, such as automatically assigning a user a certain role […]

Continue Reading
wordpress monetization

Best WordPress Monetization Plugins & Tactics to Grow Your Revenue

Author: Freddy Muriuki
Last Updated: June 6th, 2024

You will agree that finding the best WordPress monetization plugins (and tactics) to grow your revenue is challenging. If that describes your situation, you're in the right place, and we have your back as always. Like you, I had big dreams when I started my first WordPress site. Also, like you, I was skeptical about […]

Continue Reading
WordPress User Management

5 Best WordPress User Management Plugins

Author: Alex Denning
Last Updated: July 9th, 2024

By default, WordPress lets you add different types of users to your website. However, you might be looking for a more flexible way to manage the people who interact with your content. If this is the case, you can use a WordPress user management plugin to manage authors and contributors. With an efficient user management […]

Continue Reading

10 thoughts on “Swift Templates – a straight forward alternative to WordPress templates hell

    “When you’re starting out it’s just painful. You would do anything BUT custom code your WordPress templates:”

    Answer to all the pain points mentioned in the above post is: Toolset Views.

    Reply

    Toolset Views is a really nice plugin!

    However, Swift Templates will never be a 1 to 1 replacement for WordPress templates… Toolset Views tries to do that and it is a much more complicated and flexible solution then our own.

    Reply

    Views is a good instrument but 1) isn’t easy to manage 2) Types hasn’t repeatable groups of custom fields 3) Toolset is more expensive.
    So WCK with Swift Templates has its own place and reason, IMO and from users point of view, a good competition stimulates to improve both products.
    Don’t undervalue repeatable custom fields groups, this is a great and useful feature and WCK manages it perfectly, in only one omnicomprehensive tool.

    No need to create new templates, need to easily display custom contents.

    Christian, can’t wait to play with upcoming “pre-processed swift tags”.
    Have a good work.

    Mac

    Reply

    I think you are being a bit unfair with your “you can’t help but wonder if the WordPress templates system couldn’t have been designed differently” quote.

    WordPress has evolved over a 10 year period, so what we use as the end-product now wasn’t what was envisioned back yonder.

    Of course with hindsight and current technology it is easy for us now to see different ways of implementing things.

    Reply

    You’re right… and honestly, the code behind Swift Templates is still using default WordPress templates functions to implement all that. It’s an extremely flexible system that made WordPress what it is now.

    But to be honest, after 5 years of custom theme development, I’m kinda dreading the idea of having to custom code another theme if there are a lot of non-default queries that need to be implemented 🙂

    That’s not why we build Swift Templates, developers will always want to keep their templates in the file system, with version control on them and to use their favorite code editor with them.
    But for people who want to customize their websites or their customer websites faster without having to learn how the default WordPress templates system works.

    Reply

    What I want to do is to create a custom post type that will automatically default to a custom template. Is that possible with this system?

    Reply

    Hi,

    Not an actual post template https://codex.wordpress.org/Post_Type_Templates as that will be based on your theme Template Hierarchy .

    If a custom template doesn’t exists, WP defaults to the default page template.

    What Swift Templates allows you to do is create a custom content template. Basically, the content of your post type, you’ll be replace with a new template.

    Reply

    Okay, I watched the video and read this page, and I still don’t understand how to use featured image as a background image for the custom post type single template. Think a full width container with the featured image as background image, around 300px height, and the title/post meta text in the center above the image.

    Is this possible with the pro version? Please let me know soon, cause I need to purchase it asap. Thanks!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.