Tuesday, February 18, 2020

How to Create Custom Post Types in WordPress

Do you want to learn how to easily create custom post types in WordPress? Custom post types transform a WordPress site from a blogging platform into a powerful Content Management System (CMS).

Basically, they allow you to go beyond posts and pages by creating different content types for your website.

In this article, we’ll show you how to easily create custom post types in WordPress. We’ll teach you two methods and you can choose one that looks easier to you.

Creating custom post types in WordPress

What is Custom Post Type in WordPress?

Custom post types are content types like posts and pages. Since WordPress evolved from a simple blogging platform into a robust CMS, the term post stuck to it. However, a post type can be any kind of content.

By default, WordPress comes with these post types:

  • Post
  • Page
  • Attachment
  • Revision
  • Nav Menu

You can create your own custom post types and call them whatever you want.

For instance, if you run a movie review website, then you would probably want to create a movie reviews post type. This post type can have different custom fields and even its own custom category structure.

Other examples of post types are Portfolio, Testimonials, Products, etc.

Many popular WordPress plugins already use custom post types to store data on your WordPress website. The following are a few top plugins that use custom post types.

  • WooCommerce – Adds a product custom post type to your WordPress site.
  • WPForms – Creates a wpforms post type to store all your forms
  • MemberPress – Adds a memberpressproduct custom post type

When do I need a custom post type?

Check out our article about when do you really need custom post types or taxonomies in WordPress.

Also take a look at WPBeginner’s Deals and Glossary sections. These are custom post types that we created to keep these sections separate from our daily blog articles. It helps us better organize our website content.

You will also notice that we are using custom taxonomies for them instead of categories or tags.

That being said, let’s take a look at how to easily create custom post types in WordPress for your own use.

Method 1. Creating a Custom Post Type – The Easy Way

The easiest way to create a custom post type in WordPress is by using a plugin. This method is recommended for beginners because it is safe and super easy.

The first thing you need to do is install and activate the Custom Post Type UI plugin. Upon activation, the plugin will add a new menu item in your WordPress admin menu called CPT UI.

Now go to CPT UI » Add New to create a new custom post type.

Add new custom post type

First, you need to provide a slug for your custom post type. This slug will be used in the URL and in WordPress queries, so it can only contain letters and numbers.

Below that, you need to provide the plural and singular names for your custom post type.

Next, you can optionally click on the link that says ‘Populate additional labels based on chosen labels’. Doing so will fill in the rest of the label fields down below.

Scroll down to the ‘Additional Labels’ section and from here you can provide a description for your post type and change labels.

Post type labels

Labels will be used throughout the WordPress user interface when you are managing content in that particular post type.

Next, comes the post type settings option. From here you can set up different attributes for your post type. Each option comes with a brief description explaining what it does.

Post type settings

For instance, you can choose not to make a post type hierarchical like pages or reverse chronological like posts.

Below the general settings, you will see the option to select which editing features this post type would support. Simply check the options that you want to be included.

Supported options

Finally, click on the ‘Add Post Type’ button to save and create your custom post type.

That’s all, you have successfully created your custom post type. You can go ahead and start adding content.

We will show you how to display your custom post type on your website later in this article.

Creating a Custom Post Type Manually

The problem with using a plugin is that your custom post types will disappear when the plugin is deactivated. Any data you have in those custom post types will still be there, but your custom post type will be unregistered and will not be accessible from the admin area.

If you are working on a client site and do not want to install another plugin, then you can manually create your custom post type by adding the required code in your theme’s functions.php file or in a site-specific plugin (See: Custom Post Types Debate functions.php or Plugin).

First, we will show you a quick and fully working example so that you understand how it works. Take a look at this code:

// Our custom post type function
function create_posttype() {

        register_post_type( 'movies',
        // CPT Options
                array(
                        'labels' => array(
                                'name' => __( 'Movies' ),
                                'singular_name' => __( 'Movie' )
                        ),
                        'public' => true,
                        'has_archive' => true,
                        'rewrite' => array('slug' => 'movies'),
                        'show_in_rest' => true,

                )
        );
}
// Hooking up our function to theme setup
add_action( 'init', 'create_posttype' );

What this code does is that it registers a post type 'movies' with an array of arguments. These arguments are the options of our custom post type.

This array has two parts, the first part is labeled, which itself is an array. The second part contains other arguments like public visibility, has archive, slug, and show_in_rest enables block editor support.

Now let’s take a look at a detailed piece of code that adds more options to your custom post type.


/*
* Creating a function to create our CPT
*/

function custom_post_type() {

// Set UI labels for Custom Post Type
        $labels = array(
                'name'                => _x( 'Movies', 'Post Type General Name', 'twentytwenty' ),
                'singular_name'       => _x( 'Movie', 'Post Type Singular Name', 'twentytwenty' ),
                'menu_name'           => __( 'Movies', 'twentytwenty' ),
                'parent_item_colon'   => __( 'Parent Movie', 'twentytwenty' ),
                'all_items'           => __( 'All Movies', 'twentytwenty' ),
                'view_item'           => __( 'View Movie', 'twentytwenty' ),
                'add_new_item'        => __( 'Add New Movie', 'twentytwenty' ),
                'add_new'             => __( 'Add New', 'twentytwenty' ),
                'edit_item'           => __( 'Edit Movie', 'twentytwenty' ),
                'update_item'         => __( 'Update Movie', 'twentytwenty' ),
                'search_items'        => __( 'Search Movie', 'twentytwenty' ),
                'not_found'           => __( 'Not Found', 'twentytwenty' ),
                'not_found_in_trash'  => __( 'Not found in Trash', 'twentytwenty' ),
        );
        
// Set other options for Custom Post Type
        
        $args = array(
                'label'               => __( 'movies', 'twentytwenty' ),
                'description'         => __( 'Movie news and reviews', 'twentytwenty' ),
                'labels'              => $labels,
                // Features this CPT supports in Post Editor
                'supports'            => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'revisions', 'custom-fields', ),
                // You can associate this CPT with a taxonomy or custom taxonomy. 
                'taxonomies'          => array( 'genres' ),
                /* A hierarchical CPT is like Pages and can have
                * Parent and child items. A non-hierarchical CPT
                * is like Posts.
                */      
                'hierarchical'        => false,
                'public'              => true,
                'show_ui'             => true,
                'show_in_menu'        => true,
                'show_in_nav_menus'   => true,
                'show_in_admin_bar'   => true,
                'menu_position'       => 5,
                'can_export'          => true,
                'has_archive'         => true,
                'exclude_from_search' => false,
                'publicly_queryable'  => true,
                'capability_type'     => 'post',
                'show_in_rest' => true,

        );
        
        // Registering your Custom Post Type
        register_post_type( 'movies', $args );

}

/* Hook into the 'init' action so that the function
* Containing our post type registration is not 
* unnecessarily executed. 
*/

add_action( 'init', 'custom_post_type', 0 );

As you can see, we have added many more options to the custom post type with this code. It will add more features like support for revisions, featured image, custom fields, and more.

We have also associated this custom post type with a custom taxonomy called genres.

You may also notice the part where we have set the hierarchical value to be false. If you would like your custom post type to behave like Pages, then you can set this value to true.

Another thing to be noticed is the repeated usage of twentytwenty string, this is called text-domain. If your theme is translation ready, and you want your custom post types to be translated, then you will need to mention text domain used by your theme.

You can find your theme’s text domain inside style.css file in your theme directory. The text domain will be mentioned in the header of the file.

Displaying Custom Post Types on Your Site

WordPress comes with built-in support for displaying your custom post types. Once you have added a few items into your new custom post type, it is time to display them on your website.

There are a couple of methods that you can use, each one has its own benefits.

Displaying Custom Post Type Using Default Archive Template

First, you can simply go to Appearance » Menus and add a custom link to your menu. This custom link is the link to your custom post type.

Add post type to your navigation menu

If you are using SEO friendly permalinks then your CPT’s URL will most likely be something like this:

http://example.com/movies

If you are not using SEO friendly permalinks, then your custom post type URL will be something like this:

http://example.com/?post_type=movies

Don’t forget to replace example.com with your own domain name and movies with your custom post type name.

Save your menu and then visit the front-end of your website. You will see the new menu you added, and when you click on it, it will display your custom post type archive page using the archive.php template file in your theme.

Using Custom Templates for CPT Archives and Single Entries

If you don’t like the appearance of the archive page for your custom post type, then you can use dedicated template for custom post type archive.

To do that all you need to do is create a new file in your theme directory and name it archive-movies.php. Replace movies with the name of your custom post type.

For getting started, you can copy the contents of your theme’s archive.php file into archive-movies.php template and then start modifying it to meet your needs.

Now whenever the archive page for your custom post type is accessed, this template will be used to display it.

Similarly, you can also create a custom template for your post type’s single entry display. To do that you need to create single-movies.php in your theme directory. Don’t forget to replace movies with the name of your custom post type.

You can get started by copying the contents of your theme’s single.php template into single-movies.php template and then start modifying it to meet your needs.

Displaying Custom Post Types on The Front Page

One advantage of using custom post types is that it keeps your custom content types away from your regular posts. However, if you would like them to display among your regular post, then you can do so by adding this code into your theme’s functions.php file or a site-specific plugin:

add_action( 'pre_get_posts', 'add_my_post_types_to_query' );

function add_my_post_types_to_query( $query ) {
        if ( is_home() && $query->is_main_query() )
                $query->set( 'post_type', array( 'post', 'movies' ) );
        return $query;
}

Don’t forget to replace movies with your custom post type.

Querying Custom Post Types

If you are familiar with the coding and would like to run loop queries in your templates, then here is how to do that (Related: What is a Loop?).

By querying the database, you can retrieve items from a custom post type.

<?php 
$args = array( 'post_type' => 'movies', 'posts_per_page' => 10 );
$the_query = new WP_Query( $args ); 
?>
<?php if ( $the_query->have_posts() ) : ?>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<h2><?php the_title(); ?></h2>
<div class="entry-content">
<?php the_content(); ?> 
</div>
<?php wp_reset_postdata(); ?>
<?php else:  ?>
<p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>

In this code, first, we have defined the post type and posts per page in the arguments for our new WP_Query class.

After that, we ran our query, retrieved the posts and displayed them inside the loop.

Displaying Custom Post Types in Widgets

You will notice that there is a default widget in WordPress to display recent posts, but it does not allow you to choose a custom post type.

What if you wanted to display the latest entries from your newly created post type in a widget? There is an easy way to do this.

First thing you need to do is install and activate the Ultimate Posts Widget plugin. Upon activation, simply go to Appearance » Widgets and drag and drop the Ultimate Posts widget to a sidebar.

Ultimate posts widget

This powerful widget will allow you to show recent posts from any post types. You can also display post excerpts with a read more link or even show a featured image next to post title.

Configure the widget by selecting the options you want and by selecting your custom post type. After that save your changes and see the widget in action on your website.

More Advance Custom Post Type Tweaks

There is so much more you can do with your custom post types. You can learn to add your custom post types in main RSS feed or create a separate feed for each custom post type.

For more hacks, see our list of the most useful WordPress custom post types tutorials.

If you’re looking for a no-code solution to customize your custom post type archive pages, then we recommend taking a look at a WordPress page builder plugin like Beaver Builder or Divi because they both can help you do that.

We hope this article helped you learn how to create custom post types in WordPress. You may also want to see our guide on how to increase your website traffic with practical tips.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Create Custom Post Types in WordPress appeared first on WPBeginner.


February 18, 2020 at 06:00PM

Monday, February 17, 2020

What’s Coming in WordPress 5.4 (Features and Screenshots)

WordPress 5.4 is scheduled to be released on March 31, 2020. It will be the first major release of the year and will ship with some significant improvements.

We’ve been following the development closely and testing the first beta to try out new features that are on the way.

WordPress 5.4 contains several new features that are mainly focused around block editor improvements. There are also some important changes for developers.

In this article, we will show you what’s coming in WordPress 5.4 with features and screenshots.

What's coming in WordPress 5.4

Note: You can try out the beta version on your computer or on a staging environment by using the WordPress Beta Tester plugin.

WordPress 5.4 is in the feature freeze stage of the development. This means new features will not be added, but existing new features can still change and may not make into the final release.

Having said that, let’s take a look at what’s coming in WordPress 5.4.

The Block Editor Improvements

WordPress 5.4 is focused around improving the block editor by including new features and extending the existing blocks.

This is great news for content creators as they will now be able to do more with blocks inside the content editor.

The New Welcome Guide Modal

WordPress 5.4 will come with a new welcome guide popup to introduce new users with the block editor. It is a simple slide-show that explains blocks, points users to the block library, and a link to block editor tutorial.

Welcome modal in WordPress 5.4

You can also relaunch the guide by clicking on the three-dot menu on the top-right corner of the edit screen and then selecting Welcome Guide.

Welcome guide menu

New Blocks in WordPress 5.4

WordPress 5.4 will also bring two new blocks to the library.

1. Social Icons Block

Social Icons block allows you to easily add links to social media profiles inside your WordPress posts and pages.

Adding social icons block

You can then add social media icons by clicking on the add button and adding an icon. You can also click on an icon to provide a link to your social media page.

Add a social media site to social icons block

Note: These social media icons just allow you to add links to your profiles. For social sharing, you would still need a WordPress social media plugin.

2. Buttons Block

The button block will be replaced by the buttons block. The new buttons block now allows you to add more than one button side by side.

Buttons group

You can choose from two different styles, use your own text and background colors, and add gradient background colors as well.

Block Improvments in WordPress 5.4

WordPress 5.4 will come with many improvements to the WordPress block editor as well as individual blocks. The following are some of the enhancements included in the beta.

More Color Options for Blocks

WordPress 5.4 will introduce more color options for the cover, group, and column blocks.

Cover block colors

You can also choose background and text colors for all the blocks inside a group block.

Group color settings

Similarly, you’ll also be able to select background and text colors for the columns block.

Color options for the columns block

Drag and Drop to Upload Featured Image

Currently, you cannot just drag and drop an image to set it as a featured image. WordPress 5.4 will allow users to simply drag and drop an image to the featured image section.

Drag and drop featured image

Change Text Color Inside Paragraph Block

Previously, you were only able to change text color for the entire paragraph block. With WordPress 5.4 users will be able to simply select any text inside a paragraph and change color.

Select text color in the paragraph block

Caption Below Table

Users will be able to add a caption below a table block.

Table captions

Fixed Block Toolbar on Mobile

Currently, if you had to edit a blog post using a mobile device, then you’ll notice the toolbar move around blocks as you write.

WordPress 5.4 fixes this with a floating toolbar at the top which changes depending on the type of block you are currently editing.

Block toolbar on mobile screens

Easily Select Gallery Image Size

WordPress 5.4 allows you to easily choose a size for all images in the gallery.

Gallery image sizes

Improved Latest Posts Block

Coming with WordPress 5.4, users will be able to display featured images in the latest posts block.

Latest posts block in WordPress 5.4

Easily Select Blocks

WordPress 5.4 will include a select tool that will allow users to easily select a block that they want to change. This will come in handy when you have nested blocks like a group or columns.

Select block tool

The TikTok Embed Block

WordPress 5.4 will come with an embed block to easily add TikTok videos in your WordPress posts and pages.

TikTok embed block in WordPress 5.4

Under The Hood Changes in WordPress 5.4

WordPress 5.4 will bring significant improvements for developers. The following are some of those under the hood changes.

WordPress 5.4 will change the HTML output for the Calendar widget. It moves the navigation links to a <nav&> HTML element right after the <table> element in order to produce valid HTML. (#39763)

A new apply_shortcodes() function will be introduced as an alias to the do_shortcode() function. (#37422)

Some unused customizer classes will be formally deprecated in WordPress 5.4. (#42364)

In WordPress 5.4, the Button component for WordPress admin area design has been enhanced with several changes and additions. (Details)

We hope this article helped you get a good idea of what’s coming in the WordPress 5.4 release. Let us know what features you find interesting and what you’d look to see in a future WordPress release.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post What’s Coming in WordPress 5.4 (Features and Screenshots) appeared first on WPBeginner.


February 17, 2020 at 06:24PM

Friday, February 14, 2020

15 Best and Most Popular CMS Platforms in 2020 (Compared)

Are you wondering what CMS platform to use for building your website?

A CMS (Content Management System) platform lets you easily create a website without understanding any code (at least for most of them). There are lots of CMS options available, which means you might struggle to choose the best CMS for your needs.

In this article, we’ll be explaining why it’s so important to choose the right CMS platform for your website. We’ll also share our top picks for the best CMS platforms along with a comparison.

Best CMS platforms compared

What is a CMS Platform?

A CMS platform (content management system platform) is a piece of software that allows you to easily manage content and create a website.

Normally, web pages are written in HTML, JavaScript, and CSS programming languages. If you were to build a website without a CMS platform, then you would need to learn these languages and write a lot of code.

CMS platforms solve this problem by allowing you to make a website without writing code or learning programming.

Unless of course, you’re looking for a developer-friendly CMS which means you already know how to code.

How to Choose the Best CMS Platform for Your Website

There are lots of different CMS platforms out there, so which one should you pick? Before you we jump to our CMS platform comparison, here is what you should look for in a good CMS.

Ease of use

You want a CMS that makes it easy for you to create and edit content. This often means having a drag and drop interface, so you can add different elements on your pages.

It should be quick and straightforward for you to make changes to the content on your site after publishing it.

Design options

Your CMS software should offer you plenty of website design templates to choose from. It should also allow you to easily customize those designs to your own requirements (ideally without writing code).

Data portability

A great CMS platform should have tools for you to easily export your data and move it elsewhere.

For instance, you may later decide to choose a different platform or a different hosting company. Data portability makes it easier for you to move around with complete freedom.

Extensions and addons

Not all websites are the same. This is why it is impossible for any CMS platform to come with all the features that would fulfill requirements for every website.

Extensions and addons fix that problem. These are separate software that you can just install on your CMS software to extend its features and add new ones when needed. Think of them as apps for your CMS platform.

Help and support options

Although CMS platforms aim to make building a website as straightforward as possible, you still might have some questions. Find out what help and support is available if you get stuck.

Some CMS providers will have a handful of FAQs and a customer service team that’s painfully slow to respond. Others will have a big supportive community that can help you any time of the day or night.

How much does it cost?

Some CMS platforms are completely free. Others charge a monthly fee. Even with free CMS platforms, you’ll often need to pay for third-party extensions, designs, and/or web hosting services.

Try to find out as much as you can about the pricing before you choose your CMS, so you don’t have any nasty surprises.

With these things in mind, let’s take a look at the best CMS platforms to choose from.

1. WordPress.org

The WordPress.org front page

WordPress.org is our number one choice for the best CMS platform. It’s the world’s most popular CMS software, and it powers around 35% of all websites on the internet.

It’s important to not confuse WordPress.org with WordPress.com. WordPress.org is a free open source CMS originally designed for blogging, but now it’s used by all sorts of websites / online stores. WordPress.com is a blog hosting platform.

If you’re not sure about the difference between the two, check out our detailed comparison of WordPress.org and WordPress.com.

Note: When we talk about WordPress on WPBeginner, we normally mean WordPress.org. We specify WordPress.com where appropriate.

You need to host your WordPress site yourself, which means finding a suitable WordPress hosting provider.

Pros

  • WordPress offers you the flexibility and freedom to build any kind of website (online store, auction site, membership site, etc).
  • It does not require any technical skills or coding knowledge. The WordPress block editor makes it really easy to create great looking pages on your site.
  • You have complete freedom to make money online from your website in any way you want.
  • There are thousands of WordPress themes and plugins available, both paid and free. These let you add all sorts of useful extras to your site, like contact forms, photo galleries, and much more.
  • WordPress is really well designed for search engine optimization (SEO). It’s easy to create SEO-friendly URLs, categories, and tags for your posts. You can also choose from plenty of SEO plugins to help you do more.
  • There’s a huge and supportive community around WordPress, as it’s an open source CMS. You can join groups like the WPBeginner Engage Facebook group to get help with any problems you run into.
  • WordPress offers a lot of extensibility which is what makes it an ideal CMS platform for both beginners and developers alike.
  • WordPress lets you download all your content in XML format, making it easy to move to a different system in the future if you choose to do so.

Cons

  • You’ll need to set up your hosting and domain name, and you’ll be responsible for managing things like security and backups.
  • Because WordPress offers so many options and so much flexibility, it can sometimes feel a little daunting when you’re getting started. This is why many beginners use drag & drop page builder plugins for WordPress.

Pricing

WordPress itself doesn’t cost anything. However you’ll need a domain name (around $9 – $15 per year) and a hosting account with a web host that can run WordPress (normally from $7.99/month).

We have a special deal with Bluehost where you can get WordPress hosting for just $2.75/month which includes a free domain and free SSL.

If you need some help getting your WordPress site started, check out our guide on how to make a website with step by step instructions.

2. Joomla

The Joomla front page

Joomla is another popular free open source CMS platform that comes with lots of different templates and extensions. It’s free to use, but you’ll need hosting and a domain name.

It was first released in 2005, so like WordPress, it’s been going for years. Joomla is packed with features, and many web hosts offer a 1 click installation. However, it’s really an ideal CMS platform for developers and experienced website creators, so it’s not such a good option for beginners.

Pros

  • Joomla gives you lots of flexibility and plenty of options. It’s a good choice if you’re building something complicated or bespoke.
  • Although Joomla is particularly useful for developers, you can still use it even if you don’t want to ever touch a line of code. It’s easy to edit your content.
  • Like WordPress, Joomla is open source, and there’s lots of community support available if you get stuck.
  • You can use Joomla to run an e-commerce store as there are extensions available for this.

Cons

  • Even Joomla fans will admit it can be pretty complex. Depending on what you want to do with it, you may well need to hire a developer to help out.
  • There aren’t that many options for additional extensions. If you’re used to a CMS like WordPress, which has thousands of available themes and plugins that extend the core functionality, you might be disappointed by Joomla.
  • There can be some compatibility issues if you have a lot of different extensions and modules installed.

Pricing

Joomla itself is free, though you’ll need to pay for a domain name and web hosting that supports Joomla. SiteGround is a good option here, as they have specific Joomla hosting plans with lots of handy features.

You may find yourself paying for some extensions to add more functionality to your website. You might even want to budget for getting help from a developer, depending on what you’re trying to achieve.

3. Drupal

The Drupal front page

Drupal is another open source CMS platform. It’s the CMS behind some major websites, including The Economist’s site and a number of university’s sites.

Drupal is a good option for developers, or for people able to hire a developer. It’s especially good if you’re aiming to build a highly customized site that needs to handle a lot of data.

You can host a Drupal site on SiteGround. They offer free installation and can even help you transfer an existing Drupal site.

Pros:

  • It’s easy to add content on Drupal. The custom content types are flexible and offer plenty of options.
  • There are lots of different modules available that you can add to your site (these work like WordPress plugins).
  • Support is available via community support options similar to other popular platforms like Joomla and WordPress
  • User management is easy, with a built-in system where you can create new roles and specify their permissions.

Cons:

  • With Drupal, it can be tricky to figure out how to change the appearance of your site or add extras. It’s definitely not as beginner-friendly as WordPress.
  • Most Drupal websites have a heavily customized theme created by a developer, which can be very expensive.

4. WooCommerce

The WooCommerce front page

WooCommerce is the most popular eCommerce platform in the world. It’s really flexible and it’s easy to manage.

WooCommerce isn’t technically a CMS platform itself. Instead, it runs as a plugin on WordPress, so you’ll need to have WordPress on your site in order to install WooCommerce.

If it was a CMS platform, though, it’d have 5.8% of marketshare, according to W3Techs. That’s the percentage of all the websites in the world that use it.

Pros

  • WooCommerce is available as free software, but you’ll need WooCommerce hosting and domain name to get started.
  • There are lots of WooCommerce themes available, which makes it really easy to get your site looking exactly how you want.
  • WooCommerce has lots of available extensions (known as WooCommerce plugins) that let you add extra functionality to your site.
  • You can sell physical or digital products using WooCommerce. You can even sell affiliate products through affiliate links.
  • You can fully manage your inventory through WooCommerce, making it easy to keep track of what you have in stock.
  • WooCommerce comes with PayPal and Stripe payments by default. You can also add any other payment gateways through extensions and add-ons.

Cons

  • There are a lot of different options in WooCommerce, which can be a bit daunting when you’re new to setting up a website.
  • WooCommerce technically works with any WordPress theme, but you may want to stick with themes made specifically for WooCommerce for extended support.

Pricing

The WooCommerce plugin itself is free, but you may need to pay for extra plugins and extensions for your online store.

You’ll also need to pay for a domain name and a web hosting account. Bluehost is a great web host to pick as they’ll install WooCommerce and the Storefront Theme for your site for you.

5. BigCommerce

The BigCommerce front page

BigCommerce is a fully hosted eCommerce platform, which is sometimes called an all-in-one platform. It’s easy to get started with if you’re a beginner.

BigCommerce hosts your site for you, as well as providing the actual CMS platform itself. It also handles security and backups for you.

Pros

  • There’s a trial plan, so you can give BigCommerce a go before committing.
  • You can use a free domain name from BigCommerce, which will look something like mystore.mybigcommerce.com, or you can pay for a custom domain name.
  • There are lots of different ways you can take payments through BigCommerce. Customers can use digital wallets like PayPal, Apple Pay, and Amazon Pay, or they can pay by credit or debit card.
  • BigCommerce has support options that you can access straight from your dashboard, 24/7. These include live chat, email, phone support, community support, and more.
  • You can use BigCommerce with WordPress if you want to, which can give you the best of both CMS platforms.

Cons

  • BigCommerce doesn’t give you as much control over your store as WooCommerce. There are limited themes and integrations which may hold you back from using a third-party service to grow your business.
  • Once your sales reach a certain threshold per year, you’ll be automatically moved up to the next level of the pricing plan. This could be difficult for you if you have a lot of expenses.

Pricing

You need to pay a monthly subscription to use BigCommerce, which means it’s not so cost-effective as some other solutions. With all the plans, you can save a bit of money by paying upfront annually instead of paying monthly.

The cheapest pricing plan, Standard, is $29.95/month, for up to $50k/year sales. The priciest is the Pro plan for $249.85/month, which will cover you up to $400k sales. You’ll need to get a custom Enterprise plan after this.

6. Shopify

The Shopify front page

Shopify is another all-in-one hosted CMS platform. You won’t need to buy hosting, install any software, or manage things like updates and backups.

It has a straightforward drag and drop interface. It supports in-store sales, which is great if you have a physical store as well as an online one.

Pros

  • You can accept credit and debit cards through Shopify’s integrated payment solution, Shopify Payments. PayPal is also included as one of Shopify’s default payment providers.
  • There are lots of extensions and themes available for Shopify. You can buy third-party Shopify apps that let you add all sorts of features to your online store.
  • You don’t need to upgrade if you make over a certain dollar amount in sales, like you do with BigCommerce.
  • Shopify has 24/7 support through live chat, email, phone, and even Twitter. There’s also lots of documentation available (including written how-to guides and video tutorials) plus online forums.

Cons

  • Your costs can end up quite high, especially if you want to add lots of third-party apps to your store.
  • You may find that you want to add functionality that simply isn’t available: Shopify’s apps are more limited than things like WordPress’s plugins.

Pricing

Shopify’s pricing plans are similar to BigCommerce’s options. There’s one major difference, though. Shopify doesn’t make you move up to the next plan based on a certain dollar figure in sales.

The cheapest plan is $29/month. The most expensive is $299/month and includes more features. You get a discount for paying for a year upfront.

7. WordPress.com

The WordPress.com front page

WordPress.com is the commercial, hosted version of WordPress. It’s easy to confuse it with WordPress.org, which is open source, self-hosted WordPress.

If you’re not sure about the difference between WordPress.com and WordPress.org, you can find out more here.

With WordPress.com, you get an all-in-one CMS platform that’s hosted for you. You can purchase a domain name or use a free subdomain with WordPress.com branding.

Pros

  • WordPress.com is easy to get started with. You can add and edit content easily, and beginners tend to find it a straightforward CMS to use.
  • You can create a site with WordPress.com completely free of charge. You’ll probably want to pay for at least the cheapest plan, though, so you can use your own domain name.
  • There are different themes (designs) available for your WordPress.com site. You can easily switch between these in your WordPress.com dashboard.
  • As your site grows in size and popularly, you can upgrade to a new plan. There are lots of options, including a plan with eCommerce features.
  • WordPress.com has built-in analytics, which means you can see statistics about how many people are visiting your site in your dashboard. This does mean you can’t use Google Analytics, though, unless you’re on a Business Plan.
  • It’s quite straightforward to switch from WordPress.com to WordPress.org in the future, if you decide to change to a more powerful and flexible CMS.

Cons

  • WordPress.com has limited monetization options even with their business plan.
  • You can’t add a custom domain name unless you pay for at least the cheapest paid plan.
  • While there are plugins you can use for your WordPress.com site, there aren’t nearly so many available as there are for WordPress.org.
  • You don’t have the full control over your site that you’d have with WordPress.org.

Pricing

There is a free WordPress.com plan available, but if you’d like your own domain name (and you want to avoid WordPress putting ads on your website), you need to choose one of their paid plans.

The cheapest is $48/year ($4/month), or you could move up to other plans, including the eCommerce plan for online stores for $540/year ($45/month). Beyond this, there are WordPress VIP options offering additional features.

8. Ghost

The Ghost front page

Ghost is a CMS platform specifically designed for bloggers. You’ll often hear it described as a “headless CMS,” which might sound quite odd. This just means that the CMS platform doesn’t force content to be delivered in a specific way.

So, the content or data you produce could be shown on a website, but it could also be sent to a mobile app or something else entirely. If you’re not a developer, though, or you just want to use Ghost for blogging, you don’t need to worry about this.

Pros

  • You can use Markdown when you’re writing in the Ghost editor. Markdown is a way of formatting text where you add special characters around words to make them bold, italic, and so on.
  • Ghost has a content editor that uses cards. These work a bit like WordPress’s blocks in the block editor.
  • There’s great support for SEO (search engine optimization) built into Ghost. You don’t need to add any plugins to deliver this.
  • Ghost is well set up for charging for content, so if you want to run an online magazine or publication that people pay for, you can do this easily.

Cons

  • Ghost doesn’t offer the same amount of power and flexibility as WordPress.
  • Although Ghost started off as a CMS platform designed just for blogging, some users feel it’s become overly complicated as it now offers things like paid subscriptions for your site’s readers.

Pricing

The Ghost software itself is free, but you’ll need to pay for a domain name and web hosting. Unlike bigger CMS platforms, Ghost isn’t supported by all that many web hosts.

You can get Ghost hosting from Ghost(Pro). The basic plan is $36/month, but you’ll need to upgrade if you want extra staff users or subscribers, potentially paying as much as $249/month.

9. Magento

The Magento front page

Magento is a powerful open source eCommerce platform from the huge software company Adobe. There’s a free version you can download and install on your own web hosting account, called Magento Open Source.

If you want to use this, then SiteGround Magento hosting would be the easiest way to get started.

If you prefer, then you can pay for Magento Commerce. This comes with full support, and is hosted for you, but it’s very expensive.

Pros

  • Magento is highly customizable, with lots of third-party extensions available that you can use to add extra features.
  • With Magento, you can handle lots of products and customers. It lets your business grow easily, without your site slowing down. (You’ll likely need to upgrade your hosting plan, though.)
  • There are some really big name brands using Magento, including Nike, Ford, and Coca Cola.
  • You can connect different payment gateways to Magento. It also comes with certain options, like PayPal, cash on delivery, and bank transfer already built-in.

Cons

  • If you’re just starting out in eCommerce, Magento might seem overwhelming.
  • It can be tricky to find good developers for Magento projects, and it can be very expensive to hire them.
  • The support available can vary, particularly if you’re using Magento Open Source and relying on online forums for help.

Pricing

Magento Commerce isn’t cheap. In fact, it’s so pricy that the Magento website doesn’t even tell you what it costs.

Prices start at around $22,000/year, which puts it outside the budget of many new businesses. If you want a powerful eCommerce CMS platform for an established business, though, it could be an option to consider.

However many larger stores are migrating to either WooCommerce, Shopify, or BigCommerce.

10. Textpattern

The Textpattern front page

Textpattern is a simple, straightforward CMS platform that’s been available since 2003. It’s open source and has plenty of documentation to help you get started.

Pros

  • There are lots of Textpattern modifications, plugins, and templates (designs) available completely for free.
  • Textpattern has a flexible approach to how you structure your content. You can use “sections” and “categories” to organize it, and readers can subscribe to specific RSS feeds for different parts of your site.

Cons

  • There’s no 1 click installation process for Textpattern with any of the major web hosts. It’s not too tricky to install, but you will have to be comfortable with creating a database on your web host and using FTP to upload the software.
  • Textpattern isn’t particularly well known, and it’s much less popular than other CMS platforms like WordPress. You might find it hard to hire authors or developers who are familiar with it.

Pricing

Textpattern itself is completely free. You’ll need to have a domain name and web hosting account in order to use it to build a website.

11. Wix

The Wix front page

Wix is a popular CMS platform, though it has some limitations. We often get readers asking how to switch from Wix to WordPress that’s because every smart business owner knows that WordPress is definitely better than Wix.

With that said, Wix is beginner-friendly and it might be worth considering. It offers a free plan, too.

Pros

  • Wix’s drag and drop interface makes it really easy to create pages that look just how you want. You can select any part of your page and start editing it.
  • There are lots of pre-made templates you can choose from in Wix. These are fully responsive, so they look great on mobiles and computers.
  • You can add lots of apps to your site from the Wix App Market. These work like WordPress’s plugins to give your site new features.

Cons

  • Once you’ve chosen a template on Wix, you can’t change to a different one. This could mean that you get stuck with a layout that’s not quite right for your site.
  • You can’t run an eCommerce store on Wix unless you upgrade to a paid plan, and even then, you can only accept payments using PayPal or Authorize.net.
  • Wix doesn’t allow you to easily download your data and export it. You can download your blog posts (though not your images) to move them, but if you have any pages on your site, you’ll need to copy and paste these manually. We have full instructions on how to move your Wix site to WordPress.
  • If you’re using the free plan, you’ll have a Wix-branded domain name and ads on your site. The ads make money for Wix, not you.

Pricing

You can use Wix for free, if you’re happy with a Wix-branded domain name and ads running on your site. The paid plans offer more flexibility and start from $13 per month (paid upfront annually).

If you want to take online payments, you’ll need to pay $23/month or more (again, upfront annually).

12. Blogger

The Blogger front page

Blogger has been around since 1999. As you can tell from the name, it’s a CMS platform that’s specifically geared up for blogging. It’s a free service provided by Google.

Blogs on Blogger normally have blogspot in the domain, though it’s possible to use your own domain name instead.

We’ve got an article looking at WordPress vs Blogger and a guide on how to switch from Blogger to WordPress.

Pros

  • Blogger is easy to get started with. You can set up a blog in minutes, and it’s well designed for writing and publishing posts.
  • There are a number of gadgets that you can add to your blog for free so that you can include things like a contact form and even ads on your blog.
  • Your blog is hosted by Google. You don’t need to install anything, update anything, or pay for hosting.
  • Blogger offers a generous amount of space. There’s no limit on how many posts you can have per blog, and you can have up to 20 static pages. Your images are stored in Google Drive, so they’ll count towards your 15GB limit there.

Cons

  • If you want to run a website that isn’t a blog, Blogger won’t be the best CMS platform for you. It doesn’t have any eCommerce features, for instance.
  • While all the themes available are free, they’re pretty basic. You can modify them a bit, but you can’t create your own themes. If you want something more specialized, you’d need to hire a designer.
  • While you can export your posts if you want to switch from Blogger to WordPress, you’ll need to copy your pages over manually.

Pricing

Blogger is completely free and you won’t be charged anything, unless you choose to buy a custom domain name.

If you do buy a domain name, it’s best to get it from a domain registrar, not from Blogger itself. That way, you can more easily move your site away from Blogger in the future.

13. Bitrix24

The Bitrix24 front page

Bitrix24 is a business tool that offers a CMS platform alongside other features like the ability to manage your tasks, projects, communications, and customer relationships.

It’s free at the basic level (which offers up to 5GB of online storage and 12 user accounts) and offers an all-in-one solution for small businesses. If you want a CRM (Customer Relationship Management) tool, it could be a good choice.

Pros

  • The basic level of Bitrix24 is free, meaning you can try it out without committing anything.
  • There are a huge number of features included with Bitrix24, giving you everything you need to manage a small to medium-sized company.
  • The website builder has a drag and drop interface that includes landing pages and even eCommerce stores.
  • Your website hosting is free (if you’re on the free plan).
  • Cons

    • Bitrix24 is really geared up for use as a CRM, so if you’ve already got a CRM you’re happy with or you don’t want that functionality, it’s a rather complicated way to get a CMS platform.
    • As there are so many features, you may find the Bitrix24 interface confusing or tricky to navigate.

    Pricing

    The Start+ plan costs $24/month, and the Professional plan costs $199/month, with a range of options in between. You get a discount if you pay for the year upfront.

    You can also opt to purchase the software to use within your organization (instead of paying a monthly fee and using it online). This costs from $1,490.

    14. TYPO3

    The TYPO3 front page

    TYPO3 is a free, open source CMS platform that has been around even longer than Blogger. It was originally released in 1998. It’s an enterprise CMS, which means it’s useful for intranet sites (internal company sites) as well as websites.

    There are a number of extensions available for TYPO3 that offer extra functionality, too.

    Pros

    • TYPO3 can handle really large websites, including ones that have multiple websites in different languages. It’s a good option for large international companies.
    • Because it’s open-source, TYPO3 can be extended however you want, if you’re willing to hire a developer to work for you.
    • You can easily modify the access rights of different individuals and groups who work on your site.
    • There are over 6,000 extensions and applications that you can add to your TYPO3 site to include new features.

    Cons

    • There aren’t all that many themes available, so you’ll likely have to hire someone to create one for you.
    • You’ll need a pretty high degree of technical expertise to get TYPO3 up and running, and to maintain it.

    15. PrestaShop

    The PrestaShop front page

    PrestaShop is an open source eCommerce CMS platform. You host it yourself, so you can install it on any web host that supports it. We recommend using SiteGround’s PrestaShop hosting.

    Pros

    • There’s a large PrestaShop community. This includes an official forum where tips and tutorials are shared, plus lots of other groups.
    • You won’t have to pay extra as your shop grows (unless you need to upgrade your hosting plan).
    • There are loads of PrestaShop modules, so you can add new features easily.
    • It doesn’t cost much to get started with PrestaShop, especially if you’re on a cheap shared hosting plan.

    Cons

    • PrestaShop can have quite a steep learning curve to begin with.
    • There are plenty of themes (designs) available from PrestaShop, but a lot of these aren’t very good. You may have to spend a long time looking through them to find something that’ll work for your online store.
    • Pricing

      PrestaShop is free, though you’ll need to pay for your web hosting and a domain name. The modules and themes available through the PrestaShop Addons Marketplace could add up a lot, though. Most start from $59.99.

      Which is the Best CMS Platform?

      We believe that WordPress.org is the best CMS platform and website builder in the world. Over 35% of all websites on the internet is powered by WordPress, and there’s a good reason for that.

      WordPress has everything you want in a perfect CMS platform. It’s easy to get started, and many WordPress web hosting companies offer a 1 click install process. You can extend the functionality in almost any way you can think of using plugins (which are like apps for WordPress).

      On WordPress, you could run an eCommerce store, an online forum, a LMS (learning management system), a membership site, an auction site, a marketplace, and almost anything else you can think of.

      There are no limits on what you can do with WordPress, and if you find that you need more space for your site as it grows, you can easily upgrade your hosting to managed WordPress hosting company.

      To get started with WordPress, we recommend using either Bluehost or SiteGround for web hosting as they’re both officially recommended by WordPress.

      Frequently Asked Questions About CMS (FAQs)

      In case there’s still more you want to know about CMS platforms, we’ve put together this list of frequently asked questions.

      Which CMS platform is best for eCommerce?

      The best eCommerce CMS platform is WordPress with WooCommerce. While other eCommerce platforms are good too, we think WooCommerce is the best one out there for most online store owners.

      You might want to take a look at our comparisons of Shopify vs WooCommerce and BigCommerce vs WooCommerce for an in-depth look at the pros and cons of those platforms.

      Which CMS platform is best to build a small business website?

      WordPress makes it super easy to build a small business website. It has a very wide range of themes (designs) to choose from and enables you to use all the tools you’ll need to grow your business.

      Can I use a CMS platform without a domain name or hosting?

      All websites need hosting. Sometimes this is provided by the company who has created the platform (like with Blogger) and sometimes it’s something you buy from an independent web host (like when using WordPress).

      If you choose a free platform like Blogger or WordPress.com, you can use their free subdomain to start your blog, such as yourname.blogspot.com. This doesn’t look very professional, though, so you’ll almost certainly want to register a domain name at some point.

      Do I need a CMS to start a blog?

      Yes, a blogging platform is a type of CMS that allows you to easily publish content. There are lots of different blogging platforms available. Our article on best blogging platforms compares a number of both free and paid options.

      We hope this article helped you learn more about the best CMS platforms. You may also want to take a look at our step by step guide to creating a WordPress website for help on getting started with WordPress.

      If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

      The post 15 Best and Most Popular CMS Platforms in 2020 (Compared) appeared first on WPBeginner.


      February 14, 2020 at 06:35PM

Thursday, February 13, 2020

How to View the Mobile Version of WordPress Sites from Desktop

Do you want to preview the mobile version of your WordPress site? Previewing the mobile layout helps you see how your website looks on mobile devices.

While you can certainly take a look at your live site on your phone, this doesn’t help during the development stage.

Even when your site is live, it’s often easier to view the mobile version on a desktop computer, so you can quickly make changes and see their effect.

In this article, we’ll show you two simple ways to easily preview the mobile layout of your WordPress site without switching to different devices.

Preview the mobile layout of your website

Why You Should Preview Your Mobile Layout

More than 50% of your website visitors will be using their mobile phones to access your site. Around 3% will be using a tablet.

This means that having a site that looks great on mobile is essential.

In fact, mobile is so important that Google is now using a “mobile-first” index for their website ranking algorithm.

Even if you’re using a responsive WordPress theme, you still need to check how your site looks on mobile. You might even want to create different versions of key landing pages that are optimized for mobile users’ needs (more on this later).

In this article, we’re going to cover two different methods of testing how your site looks on mobile using desktop browsers.

It’s important to keep in mind that most mobile previews will not be completely perfect because there are so many different mobile screen sizes and browsers. Your final test should always be to look at your site on an actual mobile device.

1. Using WordPress’s Theme Customizer

You can use the WordPress theme customizer to preview the mobile version of your WordPress site.

Simply login to your WordPress dashboard and go to Appearance » Customize screen.

WordPress dashboard showing where to find Appearance - Customize

This will open up the WordPress theme customizer. Depending on what theme you’re using, you may see slightly different options in the left hand menu here:

WordPress theme customizer (desktop view)

At the bottom of the screen, click the mobile icon. You’ll then see a preview of how your site looks on mobile devices.

Switching to mobile view in the theme customizer

Note: The blue editing symbols are only present in the previewer. You won’t see these on your live site.

This method of previewing the mobile version is particularly useful when you’ve not yet finished creating your blog, or when it’s under maintenance mode.

You can make changes and check how they look before you put them live.

2. Using Google Chrome’s DevTools Device Mode

Google Chrome browser has a set of developer tools that let you run various checks on any website, including seeing a preview of how your website looks on mobile devices.

Simply open the Google Chrome browser on your desktop and visit the page you want to check.

This could be the preview of a page on your site, or it could even be your competitors website.

Next, you need to right-click on the page and select ‘Inspect’.

Selecting the Inspect option in Chrome

A new pane will open up on the right-hand side, like this:

The default desktop view when inspecting your site in Chrome

In the developer view, you will be able to see your site’s HTML source code.

Next, click the ‘Toggle Device Toolbar’ button to change to the mobile view.

Inspecting the mobile view of your site in Chrome

You’ll notice the preview of your website will shrink to the mobile screen size.

You’ll also notice your website’s appearance change to the mobile view. In the example above, the menu has collapsed and the Search icon has moved to the left instead of the right of the menu.

When you run your mouse cursor over the mobile view of your site, it’ll become a circle, like this:

The circular mouse cursor in Chrome's Inspect view

This circle can be moved with your mouse to mimic the touchscreen on a mobile device.

You can also hold down the ‘Shift’ key, then click and move your mouse to simulate pinching the mobile screen to zoom in or out.

Above the mobile view of your site, you’ll see some additional options.

Additional mobile options for inspecting your site in Chrome

These let you do several extra things. You can check how your site would look on different types of smart phones. You can also simulate your site’s performance on fast or slow 3G connections. You can even rotate the mobile screen using the rotate icon.

How to Create Mobile Specific Content in WordPress

It’s important that your website has a responsive design, so your mobile visitors can easily navigate your website.

But simply having a responsive site may not go far enough. Users on mobile devices are often looking for different things than Desktop users.

Many premium themes and plugins let you create elements that display differently on desktop versus mobile. You can also use a page builder plugin like Beaver Builder to edit your landing pages in mobile view.

You should definitely create mobile-specific content for your lead generation forms. On mobile devices, these should ask for minimal information, ideally just an email address. They should also look good and be easy to close.

A great way to create mobile specific popups and lead-generation form is with OptinMonster. It is the most powerful WordPress popup plugin and lead generation tool in the market.

They have specific device targeting display rules that let you show different campaigns to mobile users vs desktop users. You can even combine that with OptinMonster’s geo-targeting feature and other advanced personalization features to get the best conversion.

We hope this article helped you learn how to preview the mobile layout of your site. You may also want to take a look at our article on the best plugins to convert a WordPress site into a mobile app.

Bonus: check out our pick of the best business phone services, so you can add a click to call button for mobile users.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to View the Mobile Version of WordPress Sites from Desktop appeared first on WPBeginner.


February 13, 2020 at 06:08PM