ncoded contact information

website design services web design service online shops service optimisation and seo services graphical design servicese-commerce service search engines services graphic design services

Archive for the ‘Wordpress Tutorials’ Category

RSS Article Posts Feeds for WP

Posted by admin On June - 7 - 2009

After taking a look at some of the wordpress themes being released we noticed that some of them have not hooked up any RSS feeds! Probably the main reason that the WP Theme authors have not done this is because it is very simple to hook one up.

In order to link through to an RSS feed of your article postings, just link to:

 yourwebsite.ext/wp/feeds/

Where yourwebsites.ext/wp/ is the path to your wordpress installation.

The RSS code seems to work nicely in as much as it filters per category you are currently in. Or put another way, depending on which category you are view, the RSS feed will show the current dataset (categories).

One point with the default WP RSS feed, it seems to default to the last 10 postings, somthing which would need to be looked at for SEO.

Just add the /feeds/ folder to the end of your site URL and hey presto you have your feed!

You can see the nCoded RSS Feed for this category, as a demo to how default WP feeds look and work.

  • Share/Save/Bookmark

Creating Wordpress Sidebars with Submenus

Posted by admin On May - 15 - 2009

If you take a look at this website you will notice that each category has its own ‘menu block’ and within each menu block is listed the sub-categories. This tutorial we explain how you can implement this on you own WordPress website or blog.

Introduction:

The first thing that you need to establish is which sidebar you want to edit; This isn’t as clear as it could be as it is up the theme designer to setup which sidebars are used.

For this example we will assume you have 3 side bars, named sidebar.php, sidebar1.php and sidebar2.php - sidebar has full width, sidebar1 is half sized and is formatted to the left hand side, and sidebar2 is formatted to the right hand side. 

To get a clearer idea of this, just take a look at the sidebars used on this website, as these follow this convention.

Getting started:

For this tutorial we will just change one sidebar, but the procedure can be used on any sidebar - in this case we will be editing side1.php - which is the 1/2 formatted left hand side sidebar.

*Normally (see note above about theme designers choice of how to implement and position sidebars) the following code will be used to create a ‘menu’ block which displays ALL the categories you have, including both root and sub categories.

<?php //wp_list_categories('orderby=name&show_count=0&title_li=<h2>Article Categories</h2>'); ?>
<?php //endif; ?>

Explanation:

As you can see this functionality is achieved by calling the WP API function wp_list_categories(), passing it 3 argument parameters. The first one sets how the returned categories are ordered, the second sets if you want a count to be displayed (0=false, 1=true), with the third set how you want the title to display.

Required design:

Now if you consider what we require, instead of just one category listing with ALL categories - instead what we require is one ‘menu block’ per category, name as the root or parent category with all the sub categories below.

Implementation:

The code below implements this functionality via calling the same function above multiple times, but in each case limiting the sub categories being returned (as well as excluding the display of the root or parent category).

<?php wp_list_categories('orderby=name&show_count=0&use_desc_for_title=0&child_of=6&title_li=<h2>Online Tutorials</h2>'); ?>
<?php wp_list_categories('orderby=name&show_count=0&use_desc_for_title=0&child_of=3&title_li=<h2>Open Web Designs</h2>'); ?>
<?php wp_list_categories('orderby=name&show_count=0&use_desc_for_title=0&child_of=27&title_li=<h2>Open Software</h2>'); ?>
<?php wp_list_categories('orderby=name&show_count=0&use_desc_for_title=0&child_of=4&title_li=<h2>Modules Addons</h2>'); ?>
<?php wp_list_categories('orderby=name&show_count=0&use_desc_for_title=0&child_of=5&title_li=<h2>Themes Templates</h2>'); ?>
<?php endif; ?>

So if you need to split you master categories into ‘menu blocks’ displaying each category and it sub categories - then this is how to do it! simple huh!?

  • Share/Save/Bookmark

Manually Disabling Wordpress Plugins

Posted by admin On May - 15 - 2009

If you need to uninstall (eg disable) a recently installed plugin, perhaps because it has stopped your wordpress (WP) site from working then just use the following example.

Enter you domain control panel (cpanel, plesk, etc) and open phpMyAdmin (or any other database management system DBMS).

Select (click) the name of the database that corresponds to your WP installation; if you’re using CPanel then it usually takes the form of:

[cpanel_username][wdrp]

Once you have the correct Database table showing, then click on the table wp_options find the row active_plugins, click on the pencil icon to edit this value (if you’re using PHP-MyAdmin)

You will see something similar to the following, depending on the number and type of plugins you have installed:

a:3:{i:0;s:19:”akismet/akismet.php”;i:1;s:23:”wp-photo-album/wppa.php”;i:2;s:37:”wp-shopping-cart/wp-shopping-cart.php”;}

That entire array of code represents every active plugin on your site. Thus, to quickly disable all plugins without using the WP Admin area, highlight the entire block of code, cut it out, and paste it into a safe, offline text file. After removing the code, click the button to save your changes and that’s it.

All WordPress plugins are now deactivated (yet still installed, and with all plugin options intact). You can go through and reactivate all the plugins except the one that was causing you problems.

  • Share/Save/Bookmark

Install Wordpress on CPanel

Posted by admin On May - 15 - 2009

In order to successfully installing Worpress 2.7 onto CPanel just following this simple to use guide:

Part one Installation:

1. Download the main zip (compressed) file from: http://wordpress.org/download/

2. When you have downloaded the zipped file, save it to the correct location (in relation to where it will be going on your hosting server).

For this example installation, we will upload it to our main root folder (e.g. public_html).

3. As soon as you have confirmed that the zip file has been uploaded, to the correct location - Log into your CPanel account, and then click: the File Manager option.

4. In CPanel / File Manager - select the zip file (which in this example is in the foot folder, or public_html). Then click the un-pack option from the top horizontal menu.

5. The CPanel File Manager wizard will now unzip the Word Press zip files into the same directory.

Part two installation:

6. Close the File Manager page, and instead open the MySQL Databases page.

7. In the CPanel MySQL Databases page, you will need to create a new database, user and password. Wordpress will install and create the necessary DB tables within your new DB using your new user and password.

8. Once you have done this you will need to give permission to that User to use your new DB; So choose that User and Database you want to authorise access to, and then click Add.

9. Download and Change the name of the file: wp-config-sample.php to wp-config.php, updating your correct User, Database, and Password details within the file; Once done then re-upload this file to the sever (with the new name).

10. If you need to move files around, this is the time to do this, including removing any container folders in order to thave your new Word Press website run from the root or main folder (public_html).

  • Share/Save/Bookmark
Website & E-Commerce Solutions


nCoded Website, IP & Content © 2003 - 2009 nCoded - All Rights Reserved - No part of this website may be reproduced without permission.