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:
- WordPress Template Hierarchy
- WordPress Loop
- get_post_meta to list your custom fields and metaboxes
- Oh…and there is also this small thing called WP_Query
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 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
- 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.
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
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.
- 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!
Subscribe to get early access
to new plugins, discounts and brief updates about what's new with Cozmoslabs!
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.
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.
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.
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.
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.
What template language is this? Did you roll your own or is it something existing?
This is Mustache http://mustache.github.io/
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?
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.
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!