Archive for the ‘Wordpress’ Category

Posted in Wordpress at 10:38 pm October 1, 2007

I decided to join the Do Follow movement, which is... the opposite of the No Follow movement. The nofollow attribute was intended to discourage comment spammers by telling search engines not to trust links posted by visitors in blogs and forums. However, the spam problem has not gotten any better.
Despite the relentless efforts by spammers [...]

Read the rest of this entry »
Posted in Coding, Tips, Wordpress at 10:11 pm September 29, 2007

archive.php (in the Wordpress theme folder) is the file that handles the output of posts grouped by categories, tags (in WP 2.3) and by dates. Since I have a wide variety of topics, I figured it would be helpful to provide feeds specific to a reader's particular interest(s). The problem was I didn't know how [...]

Read the rest of this entry »
Posted in Wordpress at 11:41 pm September 27, 2007

I just upgraded to Wordpress version 2.3. It was daunting for me because I customized so much code, and installed so many plug-ins. To be on the safe side, I upgraded a copy of Wordpress on my laptop last night to see if there were any issues. I had to edit the theme I'm using, [...]

Read the rest of this entry »
Posted in Google, Tips, Wordpress at 1:18 am July 21, 2007

My Wordpress blog url structure for posts is of this pattern: /blog/year/month/date/post-title/
Ignoring the fact that a post could also show up in /blog/ and /blog/category/ and other places, the same post could show up in:
/blog/2007/
/blog/2007/07/
/blog/2007/07/21/
/blog/2007/07/21/post-title/
The duplication is not as big of a concern (to me) as the possibly poor user experience when someone encounters one [...]

Read the rest of this entry »
Posted in Coding, Tips, Wordpress at 10:30 am June 30, 2007

For reasons I will explain in another post about Linked Custom Search Engines, I wanted to generate a page that would include all of my posts in their entirety. There didn't seem to be a ready-made solution. I found a plugin but it didn't show all posts the way I wanted. This is different from [...]

Read the rest of this entry »
Posted in Coding, Tips, Wordpress at 9:04 am June 28, 2007

I haven't been able to find clear instructions on how to add widgets to Wordpress. This widget tutorial for developers was as close as I could get, but it applies to the Widget Plugin before Wordpress included Widgets in v 2.2.
I've figured out a system that has worked for me. I can't say that it [...]

Read the rest of this entry »
Posted in Coding, Wordpress at 8:30 am

I coded a widget to help Spread Firefox via a Wordpress widget. Here is the code:

function wp_widget_firefox($args) {
extract($args);
?>
<?php if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) {?>
<?php echo $before_widget; ?>
<?php echo $before_title; ?>
<?php _e('Try Firefox'); ?>
<?php echo $after_title; ?>
<ul><li>
<a href="http://www.spreadfirefox.com/?q=affiliates&id=YOUR_ID&t=210"><img border="0" alt="Firefox 2" title="Firefox 2" src="http://sfx-images.mozilla.org/affiliates/Buttons/firefox2/firefox-spread-btn-1b.png"/></a>
</li></ul>

<?php echo $after_widget; ?>
<?php
}
?>
<?php

}
I honestly don't know if this exact code will work [...]

Read the rest of this entry »