Friday, March 20, 2009

Hiding Pages in Wordpress

You might run across a time in your life when you need to hide a page in wordpress.

You have 3 options to do this:

  1. Write the page as Draft. This will hide the page from the list of pages in the menu but you can still access the page by search, and the page will be accessible if you type the direct URL to the page.
    I use this method a lot to provide pages when I do not want them in the menu. I like horizontal menus for my blogs, and if you add too many pages, your menus might start looking bad.
    Example of hiding with a draft: Real Estate Blog Lab

  2. Make the page private. This will remove the page from the menu, and you will not be able to access it by search, or by entering the URL. Please remember to log out once you make a page private. Many people make the page private and then try to access it immediately and find they can still see it. This is because you are logged in as "admin" still. So make the page private, logout and try to access the page.
    This would be the preferred method to hide a page

  3. The last way is to hardcode your menu function. Wordpress created the menu with this function: wp_list_pages();
    You can either remove that function and add your own links, or add the "exclude" argument to wp_list_pages() like so:
    wp_list_pages(
    exclude=17,38);

    The numbers are the page id's…you can get the page id's from the manage pages section of you wordpress blog admin section.
    Since this method will probably never be used, I will not go to far into it.

I use hidden pages all the time, especially when I have a sidebar widget that displays a small snippet of information, but can open a full page when more details are needed.


Thank you realiventblog.com for this useful post :)

Wednesday, March 11, 2009

Installing Wordpress in GoDaddy.com

Here is a good tutorial on how to install Wordpress in GoDaddy.com.


godaddywordpress.png

If you have chosen a Wordpress friendly domain host then you will have no problem installing Wordpress they will be the one to do it for you. If you have chosen a host like Godaddy then read on.

(Note: these steps should only be taken if you already have set up a hosting account in Godaddy. )

1. Download the Wordpress files from wordpress.org and extract.

2. Go to your account on www.GoDaddy.com
.

3. Click on Hosting Account List Under My products.

4. The hosting account control panel should appear. Click open. Then a new page will appear for Hosting Control Center.

sql-database.png

5. Click the Databases dropdown, you will see there a MYSQL icon.

6. After clicking the my SQL icon, you can now create your new database.

7. Choose which version you want to use. If you are not familiar with SQL then just choose the latest version. Note: list down the username and password for your database because you are going to need it later for the Wordpress installation.) It would take a few min for go daddy to create your new database. penbutton.png

8. After your database is ready go back and check your newly created database. Under the Action column you will see a pen icon click it to edit or view details. List down the host name.

9. Now that you are all set go to your extracted Wordpress files and open the file wp-config-sample.php. edit the following fields.

define(’DB_NAME’, ‘putyourdbnamehere‘); // The name of the database

define(’DB_USER’, ‘usernamehere‘); // Your MySQL username

define(’DB_PASSWORD’, ‘yourpasswordhere‘); // …and password

define(’DB_HOST’, ‘localhost‘); // 99% chance you won’t need to change this value. Enter the host name which you listed back in step 8.

Save your file as wp-config.php removing the -sample. ftp.png

10. Now go back to Godaddy and click the content button. Under content you should find a FTP Client Icon. Click the icon and start transferring your Wordpress files unto the root directory of your server. Note: do not transfer the Wordpress folder. Select all the files inside the Wordpress folder and then begin the transfer. It should take some time before all the files are transferred.

11. After all the files are transferred then you are all set! Just type-in www.yourdomain.com/wp-admin/install.php. Place an email add and a password will be given to you. Now you can stop reading this tutorial and start blogging. Enjoy!

Thanks to oranageinks for this Post!