Solutions
-
Mr Ben's post in Variable question was marked as the answerI have just seen the mangled comments, sorry about that. Its mean to demonstrate this:
<?php public function calcWage() { // Wrong $totalWage = ($this->wk1 + $this->wk2 + $this->wk3 + $this->wk4 + $this->wk5) - $this->totalVat; /* You are returning a value from this method so you have to use the method to get the value, the varible is only local to the method that it is in */ $totalWage = ($this->wk1 + $this->wk2 + $this->wk3 + $this->wk4 + $this->wk5) - $this->calcVat(); return $totalWage; } ?> -
Mr Ben's post in Can anyone help with a php contact form? was marked as the answerI cant see the issue yet but a couple of things I have noticed:
Your text area has no value in the name attribute so your $suggestions var is empty Your $mail_address has an address but no .com to finish it Also, as a separate note for the future, your javascript might benefit from being at the bottom of the page, thats just a tip though
-
Mr Ben's post in Removing category and comments links from blog posts (Wordpress) was marked as the answerThe trouble with looking at the code is php wont show up with view source.
However - I had a look at the source and you need to look for a div tag with the class of post-header so:
<div class='post-header'> </div>
Inside that were will probably be calls to the_category and comments_number like:
<div class='post-header'> *** Look for these functions below *** <?php the_category(); ?> <?php comments_number(); ?> </div>
Remove those functions.
I assume its in the standard post type but i cant be certain. if you dont have specific post type files then look in your index.php file.
good luck
ps this stuff is easier to find with something like chrome dev tools - when you hover over the code, the corresponding point on the page is highlighted.
-
Mr Ben's post in Wordpress Category widget - how do you style it? was marked as the answerAre you using Wordpress?
You could try something like:
select#cat {
width: *what ever you want here.* px;
}
for example