Custom Search, MySql Query Gone Wrong?

This doesn’t seem especially complex, but does seem bulky and prone to errors. As I answered couple of times on similar issues – if this isn’t time critical then wait for WP 3.1 because it will have major improvements for querying by custom fields. See Advanced Metadata Queries for brief writeup on upcoming improvements. For … Read more

Sub-Theme (based on Taxonomies)

Yes, you can. In many ways. One way is to have custom templates based on tag or category slug. So, you just tag your posts appropriately and then WordPress will automatically select appropriate template. If the template difference are miniscule, you can use php includes or wordpress includes to keep common content in other files. … Read more

Moving an ASP Site to WordPress – Looking for Help on Redirects

Using Apache directives is definitely the well-known way to handle redirects. But I’m going to recommend another, easier-to-debug approach; just write your 301 Redirects in PHP using the ‘template_redirect’ hook provided by WordPress. The following question title links to my answer where I provide full code for solving your problem: Creating 301 Redirects for Post, … Read more

Add text to Text Widget using Javascript

Where are you using document.write? Inside the text widget? If so, it should write text inside that widget, just like you want. document.write injects data where it’s encountered. So if you’re using it outside the document body it will produce unexpected results (like overwrite the document, in most cases). **Update, add this in your text … Read more