Title: Plugin code help
Last modified: August 18, 2016

---

# Plugin code help

 *  [ssdesign](https://wordpress.org/support/users/ssdesign/)
 * (@ssdesign)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/plugin-code-help/)
 * Hi all,
 * In a templete, when we want to display a link for the category and a comment 
   link for each post, we write this code:
 * <?php the_category(‘, ‘) ?>
    <?php comments_popup_link(‘No Comments »’, ‘1 Comment»’,‘%
   Comments »’); ?>
 * Now instead of this, I want to write a plugin which can generate XML code instead
   of HTML code.
 * Can someone tell me what should this code look like?
 * From my understanding, I should be writing a plugin PHP file with some function
   name and calling that function in the template code.
 * If that is correct, does anyone know where I can get some help to find the right
   code to place in the plugin PHP file for Category and Comment links?
 * Thanks.

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/plugin-code-help/#post-316721)
 * “which can generate XML code instead of HTML code.”
 * Someone is going to ask “Why ?”
 *  Thread Starter [ssdesign](https://wordpress.org/support/users/ssdesign/)
 * (@ssdesign)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/plugin-code-help/#post-316733)
 * Because, I am creating a Flash Frontend for WordPress. The XML generated will
   be used by Flash to display the content.

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

The topic ‘Plugin code help’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [ssdesign](https://wordpress.org/support/users/ssdesign/)
 * Last activity: [20 years, 2 months ago](https://wordpress.org/support/topic/plugin-code-help/#post-316733)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
