Archive for the ‘WordPress’ Category

Add GetBundle to TextMate and using WordPress Bundles

Tuesday, March 2nd, 2010

Related Link :

Additional Report :

If you don’t have TextMate folder, Just make under Library/Application Support/TextMate/Bundles
ex : mkdir -p /Library/Application\ Support/TextMate/Bundles

How to Move Local WordPress blog to Actual Server.

Sunday, February 28th, 2010

The tricky part when moving WordPress blog data from my local server to actual server is using absolute path in URL link location when stores some parameters in database. The URLs of local WordPress are usually started with http://localhost. All these values in the database will need to be changed when WordPress is moved.

To update WordPress with the new blog location after backup and restore your old database, have to use SQL command.

UPDATE wp_options SET option_value = replace(option_value, 'http://localhost:8888', 'http://newdomain.com') WHERE option_name = 'home' OR option_name = 'siteurl';

UPDATE wp_posts SET guid = replace(guid, 'http://localhost:8888','http://newdomain.com');

UPDATE wp_posts SET post_content = replace(post_content, 'http://localhost:8888', 'http://newdomain.com');

Additional Notice : To move just data without user information, backup all tables from your database except wp_usermeta, wp_users.

WordPress Theme Design.

Tuesday, February 16th, 2010

http://codex.wordpress.org/Theme_Development

WordPress Themes consist of three main types of files, in addition to images. One is the style sheet called style.css, which controls the presentation (look) of the web pages. The second is the optional functions file (functions.php). The other files are the template files which control the way the web page generates the information from the Database to be displayed as a web page. Let’s look at these individually.

Theme Style Sheet

In addition to CSS style information for your theme, the stylesheet, style.css must provide details about the Theme in the form of comments. No two Themes are allowed to have the same details listed in their comment headers, as this will lead to problems in the Theme selection dialog. If you make your own Theme by copying an existing one, make sure you change this information first.

Theme Functions File

A theme can optionally use a functions file, which resides in the theme subdirectory and is named functions.php. This file basically acts like a plugin, and if it is present in the theme you are using, it is automatically loaded during WordPress initialization (both for admin pages and external pages). Suggested uses for this file:

Theme Template Files

Templates are PHP source files used to generate the pages requested by visitors. Let’s look at the various templates that can be defined as part of a Theme.

WordPress allows you to define separate templates for the various aspects of your weblog; however, it is not essential to have all these different template files for your blog to function fully. Templates are chosen and generated based upon the Template Hierarchy, depending upon what templates are available in a particular Theme. As a Theme developer, you can choose the amount of customization you want to implement using templates. For example, as an extreme case, you can use only one template file, called index.php as the template for all pages generated and displayed by the weblog. A more common use is to have different template files generate different results, to allow maximum customization.

Project. Making a Book with WordPress

Sunday, December 20th, 2009

Usually, WordPress blog’s contents are sorted by time order. However, books are very static media. That means I have to add a plug-in on WordPress to fix the contents of the site. Layout problems are second-primary problems.

I think “Page Menu” would be a temporary solution.