WordPress.org

Ready to get started?Download WordPress

Forums

Plugin code help (3 posts)

  1. ssdesign
    Member
    Posted 8 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?

    Thanks.

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

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

    Someone is going to ask "Why ?"

  3. ssdesign
    Member
    Posted 8 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

Tags

No tags yet.