WordPress: Force full comment display on archives or index page
By default, most themes are written so that archive or index pages (pages that display multiple posts) show how many comments have been approved, and the reader must click a link to see the actual comments, usually with the result of opening the specific post. This is for good reason, for on a site with a large number of comments on many posts, display of the pages would become unwieldly.
One client, however, wanted all post comments to appear fully visible on his archive/index page. This required some theme tinkering, with a change in which php function was called. The solution, as described by Flisterz, was simple:
I added this to the second line of “archive.php” (not to be confused with “archives.php”), right after the "get_header" line:
<?php $withcomments = 1 ?>
And I added this to the same file, right before the end of the loop:
<?php comments_template(); ?>
Some optional cleaning up was done, to eliminate the old comment code and place tags in the most beneficial spot, but otherwise, that did it.
‘In Touch’ plugin display of submit button in IE
April 20, 2009 by Edward
Filed under Geek Notes, WordPress
If you use the “In Touch” contact form plugin for WordPress, you might have noticed that the Submit button is incorrectly placed (over top of the text entry box) when viewed using some versions of Internet Explorer, though it seems to display just fine in Firefox. While it would be nice if everyone in the world came to their senses and dumped IE, the reality is that a majority still use the thing.
Here’s the solution to this display problem, thanks to Dan Lai:
Locate the file intouch.php (found in your plugins folder) and open it with a text editor. Locate the following section:
div.intouch div.inputfield input.submitbutton {
width: auto !important;
padding: 2px;
margin-left: 10px;
left: 25%;
position: absolute;
}
Change:
position: absolute;
to:
position: relative;
Save it, and everything should be good.
Search-and-replace plugin for WordPress
February 25, 2009 by hedley
Filed under Geek Notes, WordPress
I recently moved a client’s website site from a subdomain to a real domain space on the same server, and later found that all (several hundred) images were still pointing to the old subdomain folder in their URLs. I tried doing a search and replace query in phpMyAdmin, but the characters of the URLs generated errors.
Rather that try to educate myself on SQL queries, I took the easy route and looked for a WordPress plugin. I found one by Mark Cunningham and Frank Bueltge called, appropriately enough, Search and Replace. It worked perfectly, and my database changes were completed in about .0067 seconds. Naturally, if you plan to try it, back up your database first.
For info, see Frank’s site (German) or for English, try the WordPress download page for the plugin.
****** Technical support information under this category is provided without any guarantees that it will work as described. Use any advice here at your own risk. ******



