Showing posts with label Wordpress. Show all posts
Showing posts with label Wordpress. Show all posts

Friday, June 29, 2012

Protect your WordPress site/blog from comment spam trick

I got caught with this trick once so I decided to share this with other web masters who don’t know this already.
In WordPress the default settings for comments (Settings->Discussion) are set as the following:


So the requirements for a comment to appear are:
  • Comment author must fill out name and e-mail.
  • Comment author must have a previously approved comment .
This is all good until someone decides to be all nice about your site and make a true nice comment so you approve it and then becomes a spammer. Since you already approved one of his comments before so now he can post a spam comment with links everywhere without your permission.
This is how this trick works:

Thursday, May 24, 2012

Query or show a specific post in wordpress

If you are looking for php code or a plugin for your WordPress that takes a post ID and returns the database record for that post then read on. This is very helpful when you want to show a specific post on your homepage or other pages to get more attention. It allows you to design your homepage or a page with the post(s) that you want to be shown on the page rather than the 10 recent posts that the WordPress automatically chooses for you.