I tried to help a co-worker with a professional blog for a TV channel yesterday and ran into some weird issues. We host the blog on a Windows 2008 server with IIS and Plesk. The WordPress install from within the Plesk worked fine but ours did not. The “white screen of death” on the install screen was perplexing (more on that at the bottom of this article), but every time he tried to either upgrade WordPress or install or upgrade a plugin or theme, he would receive warnings or failures stating that WordPress was unable to find the wp-content directory. This warning can take various forms but circle around the fact that WordPress did not find the right directory in the expected place.
The obvious and painless solution is to upload the files directly to the server using FTP and then control the blog from within wp-admin. In this case, though […]
Original post by Mark Ghosh
Technorati Tags: blog
You may be wondering why anyone would want to do this. Think about it, you probably have hundreds of articles that you wrote years ago and when those same articles appear on Google search engine results, the dates appear next to the description. You might think that this is great, users searching the web should be able to see when an article originally published, but research shows that users discriminate against older content just because it is old. An article that may be valuable despite its age would be subject to a user completely ignoring it and would click on the newer article, just because it was newer.
As you can see in the image above, the search results page lists the post date for the article followed by the description.
Do not confuse the intent here, if you are running a news site or writing about topics whose value is short […]
Original post by gperera
Technorati Tags: blog, news, google
WordPress 3.0: Multisite Domain Mapping Tutorial. As an extension of the excellent walk through of the multisite functionality of WordPress 3.0 by our very own Klint Finley, Otto has put together a domain mapping tutorial that is receiving rave reviews. Follow the steps to map multiple domain blogs from within the same WordPress 3.0 install.
Technorati Tags: blog
Original post by Mark Ghosh
Technorati Tags: blog
There may be times in WordPress where you would like to load the WordPress environment manually, and prevent plugins from loading.
Two instances where this is ideal are:
When loading an inline frame with Thickbox or Colorbox.
When parsing AJAX requests in an external PHP file.
To further give justification for this technique, I had a major plugin conflict with another plugin. My Ajax Edit Comments plugin had failed to work for one of my clients.
After doing some troubleshooting, I determined it was a plugin conflict with “xyz” plugin. When I looked at the conflicting plugin’s code, I was able to pinpoint the problem to one patch of code, but failed to determine a fix.
The conflicting plugin was causing my nonces to fail, as well as my AJAX processor to fail (since that uses nonces as well).
Since my plugin’s editing options are all in a Colorbox inline frame (where I manually load […]
Original post by Ronald Huereca
Technorati Tags: blog
Publish The Feed Later: WP Engineer provides a nice tutorial on how to publish your post to your feed a few minutes (configurable) after you publish your post. These few minutes can help you find errors or bugs in your post and fix them before they get sent out via your feed to all your readers. The “hack” requires you to change your theme’s functions.php file and add the code snippet provided. Alternatively you could also use a plugin written by our very own Keith, called Feed Pauser. I see no compatibility information on this plugin (maybe Keith could chime in and let us know) but it does offer further functionality such as the ability to prevent individual posts from appearing in your feed. A useful hack/plugin for those like me who have an itchy post finger.
Technorati Tags: blog
Original post by Mark Ghosh
Technorati Tags: blog, feed
DISCLAIMER: This post is in no way intended to promote HTML over XHTML or vice-versa. This is simply a solution to a problem for those who may find it useful.
Anyone who has used WordPress for any decent length of time probably knows that everything it outputs is in XHTML format. For those who prefer this, that’s just fine. However, for those of us out there that prefer to use HTML instead, we’re pretty much out of luck when it comes to WordPress. As it stands now, there is no easy way to make WordPress output in HTML format. But today I hope to help those people with this simple function I found around the web.
First, the code:
function HTMLify($buffer) {
$xhtml = array(’/XHTML 1.0 Transitional|XHTML 1.0 Strict|XHTML 1.0 Frameset|XHTML 1.1|XHTML Basic 1.0|XHTML Basic 1.1/’, ‘/xhtml1/DTD/xhtml1-transitional.dtd|xhtml1/DTD/xhtml1-strict.dtd|xhtml11/DTD/xhtml11.dtd|xhtml-basic/xhtml-basic10.dtd|xhtml-basic/xhtml-basic11.dtd/’, ‘//>/’, ‘//s+>/’, ‘/xmlns=”http://www.w3.org/1999/xhtml”/’, ‘/s+xmlns=”http://www.w3.org/1999/xhtml”/’, ‘/s+xml:lang=”(.*)”s+lang=”(.*)”/’, ‘/s+>/’);
$html = array(’HTML 4.01′, […]
Original post by James Dimick
Technorati Tags: blog
Ever wondered how you can manipulate WordPress filters and actions that are defined inside a PHP class?
I did! I was working on a project recently that needed a plugin. The only problem was that the plugin was inserting some unnecessary cruft into the header of my theme. So, I figured I’d just use the remove_filter function WordPress provides… right?
Hold on a second! It’s not working!? But I put in the function name just how the codex explains it:
remove_filter(’wp_head’, ‘the_crufty_function’);
Why would it not work? Time to do some troubleshooting… So, I opened up the main plugin PHP file in my code editor and began to look around. What’s this? It’s a class! Hmm… But why should that make a difference?
It seems that WordPress requires a special reference to the function if it is defined inside a class. If you, the reader, are at all familiar with PHP classes then you probably […]
Original post by James Dimick
Technorati Tags: blog
If you are a WordPress developer or designer or have been messing around in the world of WordPress for any period of time, you have by no doubt heard of WordPress hooks. Hooks are a set of custom written functions that can be added to existing functions in the WordPress core to increase, improve or remove functionality. WordPress plugins make extensive use of hooks to latch onto various portions of the WordPress themes or to the admin interface in order to provide the additional functionality or to perform certain actions in certain parts of the code. If you are looking to understand hooks, learn about all the action and filter hooks and all the deprecated hooks, find the latest changes and understand how hooks can be used in customizing WordPress, I suggest you look at Adam’s WordPress hooks database.
Smashing Magazine has listed 10 Useful WordPress Hook Hacks in which they do […]
Original post by Mark Ghosh
Technorati Tags: blog
WordPress Configuration Tricks .: If you have ever installed WordPress and wanted to know what else you could do with your wp-config.php file, this is the blog post to read. As Ozh points out in the comments, a couple of tricks were left out but nothing that could not be remedied with a simple Google search (e.g. WP_HTTP) as long as you know what you are looking for.
Tips from that page that got me thinking (things that make you go hmmmmm?) include moving your wp-content directory, increasing your memory limit, changing the autosave interval, turning on debugging and finally the ability to specify a log file for errors. All of this through the wondrous wp-config.php file.
While you are there, make sure you subscribe to the blog. Chris and Jeff are putting out some good stuff!
Post from: Weblog Tools Collection
WordPress Configuration Tricks
Technorati Tags: blog, blogger
Original post by Mark Ghosh
Technorati Tags: blog, blogger, google
Twitter, WordPress execs in Iraq to help country use new media - CNN.com. Interesting piece on CNN today about Raanan Bar-Cohen, one of nine technology executives, who begin their third day in Iraq on Tuesday as part of a U.S. State Department-led trip on how the war-battered country can […] Continue Reading…
Technorati Tags: blog, rss, technology
Original post by Mark Ghosh
Technorati Tags: blog, rss, technology