How To Add Numbers To Your Comments in 3 Easy Steps [WordPress Tip] |
| Published: August 10, 2008, 3:52 pm |
| Tags: tutorial how to, wordpress |
|
Copyright © 2008 John Kolbert. Visit the original article at http://simply-basic.com/posts/1941334.In the past few weeks I’ve had a few people email me and ask me how I get the numbering to show up on my comments. It’s really more of a PHP question then a WordPress question, but it’s quite simple. There may be plugins which do this for you, but anytime I can have a simple fix and avoid the overhead of a plugin, I’m happy. The following tutorials is for someone with no PHP experience and basic HTML/CSS knowledge. Here’s how to number your comments in three steps. Example: Step 1 Locate and open your theme’s comments.php file. Theme files are found in wp-content/themes/themename/. In your comments.php file you’ll be looking for the following code: 1 <?php if ($comments) : ?> Directly after that line, type <?php $i = 1; ?>, so that it looks like this: 1 2 <?php if ($comments) : ?> <?php $i = 1; ?> What were doing [ Full article ] |
|
|
No Comments...