Log in

Sign in with your email address and password:

No account? Sign up here.
Forgot your password? Reset it here.
Didn't receive account confirmation email? Request a new one.


Using WordPress Within Another CMS

As we’ve already discussed previously, WordPress is a fantastic and highly adaptable piece of software, which can be used in a great range of applications from blogging to e-commerce. However, it may be the case that either you already had an existing site set up, or you just opted to use software that was specially designed for a task like e-commerce e.g. OpenCart, Magento, Shopify or Prestshop. In these situations, what are your options if you then decide that you’d like to have a blog on your site, will you have to make use of sub-par solutions such as add-ons & extensions or is it possible to fully integrate WordPress into your site?

Using WordPress Within Another CMS

Integrating WordPress Within Another CMS

Whilst many of the major e-commerce solutions offer extensions or add-ons that offer the basic functions of a blog, they can be pretty basic and somewhat limited offerings. As well as this, they can also be a real hassle to set-up and maintain, especially if you aren’t familiar with all the ins and outs of each platform! The best solution is to install WordPress in a sub-directory of your site. So, to find out how, just carry on reading.

Quick Tutorial for Installing WordPress in a Sub-directory

Lets assume that your site is located at http://www.yoursite.com and you would like the WordPress blog to be located in a sub-directory called ‘blog’ e.g. http://www.yoursite.com/blog/. First of all you will need to create the blog sub-directory. To do this simply log in to your server using which ever method you prefer e.g. Cpanel, FTP etc. and locate the main root directory. Create a new folder here and rename it as ‘blog’. Done!

Notes: You can call the sub-directory something other than ‘blog’ but it is easier to keep track of what’s what if you keep the naming system as outlined here.

The next step depends on whether or not your host offers one-click installations of WordPress. If they do, then you can either use the installer or follow the next set of instructions. The next step is to download the latest version of WordPress from here, extract it and then upload the files to the sub-directory you just created.

Notes: If you opt to use the one-click installation, it’s very important, especially if you have an existing site on the server, to install in the right place. Following these instructions, the correct location will be http://www.yoursite.com/blog/. Failure to follow these instructions could result in your main site being corrupted or deleted.

Creating the WordPress Database and User

The next step may sound complicated but it’s much simpler than you’d imagine! Using cPanel, creating a database and user is as follows:

  • Log in to cPanel and select MySQL Database Wizard
  • Enter a database name e.g. WordPress and click Next Step.
  • Enter a database username and password (make sure to choose a secure one!) and click Create User.
  • Click the All Privileges check-box and then add the user by clicking Next Step.
  • Note down all the information including the hostname, username, databasename and the password you chose. Job done!

As well as cPanel you can also use other tools such as phpMyAdmin or by using shell scripts, although they can be a bit more complicated for novice users.

Install WordPress

In your browser just navigate to http://www.yoursite.com/blog/wp-admin/install.php. You’ll need to refer to the details you noted down earlier and input them during the installation. Once this is completed, WordPress will have been successfully installed to the sub-directory you created in the first step!

Make a link on your main website to the WordPress blog and you will be able to make the most of it and find out yourself just how useful it can be.

In order to make the blog look like the rest of your site you’ll need to do a couple more steps:

You’ll need a way to make your site’s regular php pages use WordPress. To do this you add a code snippet to the start of each page –

Then, in order to take advantage of all the template tags and plugins that are available, you have to include The Loop in your pages. You can follow the WordPress.org guide to find out more about The Loop and how best to use it.

Once you see the power of WordPress you may just decide to switch your entire site over to it!

 

 

 


Submit a Comment