Title: Where&#8217;s the PHP ?
Last modified: August 18, 2016

---

# Where’s the PHP ?

 *  [lemonhead](https://wordpress.org/support/users/lemonhead/)
 * (@lemonhead)
 * [20 years ago](https://wordpress.org/support/topic/wheres-the-php/)
 * I wanted to see the code behind the php function:php the_category. Can someone
   tell me what directory the definition of this function resides ?
 * I am also looking for the same information for <?php comments_popup_link(__(‘
   No Comments’), __(‘1 Comment’), __(‘% Comments’)); ?>
 * Last question:
    Can someone provide me the WP link where it explains the comments
   php function. I notice on some Blogs it says “Add/Edit”. On mine it says “No 
   Comments” This confuses my users who think they can not comment. Thus I wanted
   to change my verbage to Add/Edit. I have no idea what (<?php comments_popup_link(
   __(‘No Comments’), __(‘1 Comment’), __(‘% Comments’)); ?>) does so if I can figure
   out this function then I can make my change to Add/Edit.
 * POB

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [ladydelaluna](https://wordpress.org/support/users/ladydelaluna/)
 * (@ladydelaluna)
 * [20 years ago](https://wordpress.org/support/topic/wheres-the-php/#post-397817)
 * I’m not sure about your first question, however here’s help with the second one:
 * `<?php comments_popup_link(__('No Comments'), __('1 Comment'), __('% Comments'));?
   >`
 * All you have to do is change `'No Comments'` to `'Add Your Comments'` (users 
   can’t edit their comments anyway)
 * Does that help?
 *  [Nazgul](https://wordpress.org/support/users/nazgul/)
 * (@nazgul)
 * [20 years ago](https://wordpress.org/support/topic/wheres-the-php/#post-397827)
 * The the_category function can be found in this file:
    /wp-includes/template-functions-
   category.php
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years ago](https://wordpress.org/support/topic/wheres-the-php/#post-397844)
 * And for the future:
    [http://redalt.com/xref/trunk/nav.htm?_functions/index.htm](http://redalt.com/xref/trunk/nav.htm?_functions/index.htm)
   [http://cenamayo.com/wpxref/nav.html?index.html](http://cenamayo.com/wpxref/nav.html?index.html)
 *  [syncbox](https://wordpress.org/support/users/syncbox/)
 * (@syncbox)
 * [20 years ago](https://wordpress.org/support/topic/wheres-the-php/#post-397859)
 * When you are seeing “Edit” it typically is a link for YOU (the person logged 
   in). So the code looks something like:
 * _posted by_** <?php the_author('namefl'); ?>** | _<?php the\_time('F j, Y'); ?
   > at <?php the\_time('g:i a'); ?>  <?php edit\_post\_link(\_\_('Edit This'));?
   >_
 * A separate bit of code:
 * <div class="feedback">
    <?php wp_link_pages(); ?> <?php comments_popup_link(__('
   Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> </div>
 * provides the link to edit a post. To change the wording of that, just edit the
   bits inside ‘Comments (0)’ could become
 * ‘hey, there are no comments yet, care to comment?’
 * and the others ‘Comments (1)’ which is for a single comment could become ‘only
   one person has made a comment, want to add to that?’ and finally, the third one,
   which is for more than one comment, could become ‘here’s what everyone is saying’
 * You don’t have to use the numbers, those (”, ”, ”) are the arguments for comments_popup_link()
   You can even put an image into the arguments… with something like this:
 * <?php comments_popup_link(('add a comment? <img src="/wp-content/themes/yourtheme/
   images/icon-comment2.png" />'), __('someone said <img src="/wp-content/themes/
   yourtheme/images/icon-comment2.png" /> '), __('what others are saying <img src
   ="/wp-content/themes/yourtheme/images/icon-comment2.png" /> ', 'comments-link'));?
   >
 * HTH

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Where’s the PHP ?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 5 participants
 * Last reply from: [syncbox](https://wordpress.org/support/users/syncbox/)
 * Last activity: [20 years ago](https://wordpress.org/support/topic/wheres-the-php/#post-397859)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
