Functional, flexible WordPress

WordPress is one of the most popular content management systems (CMS) deployed on the internet. It is easy to use, easy to customize and it’s totally free, so its appeal is broad.

WordPress was originally intended as blogging software. Bloggers often like to build communities, receive feedback and start conversations, so comments are great for bloggers. However, now that WordPress is regularly used for custom web development by more than just those in the blogosphere, the comment feature may not be useful (or even wanted) by all.

Lots of websites exist to inform and promote, and oftentimes online comments don’t fit into this design. Simply turning off comments in WordPress isn’t enough, so I’d like to focus on how comments still show up in the admin panel (even when commenting is turned off) and what we at Imaginuity Interactive can do to stop it.

One of the strangest comment-related issues I’ve seen involved the career info section of a client’s website. If a potential employee searched “[clientname] career info” in search of job openings, Google returned the career info.jpg image.php as the No. 2 search result — not the actual career info page.

In this particular theme template of WordPress, the image.php file for image attachments had gone unchanged because it was not used (or so we thought). Users looking for career information were being directed to this extraneous page, where they in turn posted comments to no avail.

  • The easiest way to prevent commenting on these pages is to edit the image.php template file to remove comment areas before the website is launched.
  • However, another simple way to get around this problem would be to redirect the user to another page.
  • A blanket redirect to the homepage would be fine, but to guide the user to a more appropriate landing page, we do a check and redirect the post to its parent page. In this case, if a user went to the “career info.jpg” image.php page, they would automatically be redirected to the career info page of the site.

With a bit of code writing on our part, we can get around redirect errors easily. Now we just need to rename that pesky image so it falls off of Google searches!

Contact Us