The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Plugin code help (3 posts)

  1. ssdesign
    Posted 10 years ago #

    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?


  2. Mark (podz)
    Support Maven
    Posted 10 years ago #

    "which can generate XML code instead of HTML code."

    Someone is going to ask "Why ?"

  3. ssdesign
    Posted 10 years ago #

    Because, I am creating a Flash Frontend for WordPress. The XML generated will be used by Flash to display the content.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.