Where to add the code for an outer container in a theme?

It is really hard to say without being able to look at your theme files directly. But you are most likely going to have to put <div id=”hbz_outer_container” style=”position: relative;”> <div id=”hbz_drop_shadow”> somewhere in your header.php and then put the closing tags: </div><!– hbz_drop_shadow –> </div><!– hbz_outer_container –> in your footer.php header.php and footer.php should … Read more

Display filesize of custom field value

function to handle to show file size i.e. paste this code in functions.php /* * @param string $fileSize Filepath * @param int $digits Digits to display * @return string|bool Size (KB, MB, GB, TB) or boolean */ function getFilesize($fileSize, $digits=2) { $sizes = array(“TB”,”GB”,”MB”,”KB”,”B”); $total = count($sizes); while ($total– && $fileSize > 1024) { $fileSize … Read more

Submit button returns to index page instead of sending data

Put var_dump($_SERVER[‘PHP_SELF’]); at the top of header.php and you will see the problem. That always points to index.php because nearly everything loads through index.php. Use get_permalink to get the “apparent” URL and use that instead of $_SERVER[‘PHP_SELF’] in the form action attribute.

Change Fields of Comments and make them searchable?

Adding additional fields to comments isn’t hard. There are tons of decent tutorials out there (and probably prebuilt plugins too). Google it. Here’s an example: http://wp.smashingmagazine.com/2012/05/08/adding-custom-fields-in-wordpress-comment-form/ As far as I know, searching on tags + categories + comments isn’t possible. I’m confused on why you’d want to search on comments?

Delete query won’t run

I see no reason why $_POST[‘delete’] should not be set assuming there are no page redirects involved. I can’t tell from your code if that is the case, but it superficially appears not to be. I do see other potential problems. You are setting your form action to an empty string. While that does sometimes … Read more