WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Comment popup link in XML output

[Resolved] Comment popup link in XML output

  • 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.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Comment popup link in XML output’ is closed to new replies.
Skip to toolbar