WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Comment popup link in XML output (2 posts)

  1. ssdesign
    Member
    Posted 8 years ago #

    Hi,
    I have created a custom XML template page.

    Here is part of the code where the POST details XML is output:

    '
    <Post>
    <permalink><?php the_permalink() ?></permalink>
    <title><?php the_title(); ?></title>
    <time><?php the_time('F jS, Y') ?></time>
    <?php the_author() ?>
    <data><![CDATA[<?php the_content('Read the rest of this entry »'); ?>]]></data>
    <?php the_category(', ', '','XML') ?><?php comments_popup_link('No Comments', '1', '%', '', '','XML'); ?>
    </Post>
    '

    note: 'XML' is an additional value I am passing to the functions which I have modified.

    Now the questions is about the comments link. Using the code above, the default comments link is output.

    I would like the comment-popup link to be displayed instead.

    From what I understand (correct me if i am wrong), the comment-popup link will display if a certain Javascript exist in the code.

    If I want to output a comment-popup link inside and XML, what should I be doing different?

    Thank for any advice on this.

  2. ssdesign
    Member
    Posted 8 years ago #

    I solved it by modifyig the comment-functions.php file in the wp-includes.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags