WordPress Hacks

In setting up this website, I had to spend a lot of time researching and understanding WordPress. I’ve reviewed ton of plugins, themes, and even had to do some PHP modification. With that, this page is dedicated in sharing my finding with other who plan to use WordPress engine for their blogging website.

WordPress Tips and Hack

WP: Splitting Category Listing Into Multiple Pages

Here is a little neat trick for Wordpress. Normally, you would use the WordPress tag “query_posts” to query against the database to list all of the posts relating to one or more categories.
Usually a simple query against a category would like something like this:

<?php query_posts(showposts=5&cat=$category);
while(have_posts()) { the_post();

}
?>

Basically all this is doing is show 5 posts [...]


Jun 19th, 2008 | By dikiem | Category:WordPress Tips and Hack | no comments | 67 views


WP: Redirect from blogger.com to another location

This should be helpful for anyone who decided to host their own blog using WordPress another location. It took me awhile to search for this since the new blogger version template style changed a bit.
http://laffers.net/howtos/howto-redirect-blogger-to-wordpress
Thanks to laffers.net for putting this together. It was extremely useful!
Here are snip of what he presented there. All credit goes [...]


Jun 16th, 2008 | By dikiem | Category:WordPress Tips and Hack | no comments | 54 views


WP: Creating Dropdown List of Categories

Here is a little WordPress tip / trick. For anyone who is trying to build their sidebar and or want to add a dropwdown list style for category listing, this is one simple method.
http://codex.wordpress.org/Template_Tags/wp_dropdown_categories
You can use the code snip they’ve provided
<li id=”categories”>lt;h2><?php _e(’Posts by Category’); ?></h2>
<?php wp_dropdown_categories(’show_option_none=Select category’); ?>
<script type=”text/javascript”><!–
var dropdown = document.getElementById(”cat”);
function onCatChange() {
if [...]


Jun 14th, 2008 | By dikiem | Category:WordPress Tips and Hack | no comments | 57 views


Alternative RSS Method (Zenfolio, Flickr, etc.,)

I had mentioned in the Wordpress Plugin section, there is an Zenfolio RSS plug that is used to display nice little thumb nails on the side bar of your Zenfolio Galleries. In search of finding something more specific, I came across an alternative method. While it is no plug in yet, but a simple PHP [...]


Jun 12th, 2008 | By dikiem | Category:WordPress Tips and Hack | 2 comments | 96 views


WP-Themes: Premium News Style

A lot of people have asked me what theme is used for this new design and layout. When looking into redesigning the domain, I wanted something to infuse all of the blogspot account I have and with the content management style I had with the Nuke-PHP engine I used previously. That lead me to use [...]


Jun 9th, 2008 | By dikiem | Category:WP Themes | 1 comment | 36 views


WP-Tips: Adjusting Excerpt Display Count

In wordpress, the commonly used tag to show summary of an article or post is <?php the_excerpt(); ?>. By default, if you don’t provide an excerpt, wordpress will use the first 55 words in the article as the excerpt.
What if you want to have more or less than 55 words, how is this accomplished?
You can [...]


Jun 9th, 2008 | By dikiem | Category:WordPress Tips and Hack | 1 comment | 36 views


WP-Tips: Error 404 Page Not Found Bug!

I had spent a whole day on the weekend trying to figure out why my .htaccess setup and error 404 is not working on wordpress. After numerous posts reading and blogs reading, I came across a site that perfectly describe the issue. Turn out it is a bug in version 2.5 and higher. This was [...]


Jun 9th, 2008 | By dikiem | Category:WordPress Tips and Hack | no comments | 28 views