Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3842368
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:47:01+00:00 2026-05-19T15:47:01+00:00

Hello I would like to know if there is a way to pull the

  • 0

Hello I would like to know if there is a way to pull the contents of comments on a post to a separate page from wordpress. currently this is what i have, i’d like to replace with a function to pull the comments instead of pulling the link to the comments.

<?php
// Include WordPress 
define('WP_USE_THEMES', false);
require('./blog/wp-load.php');
?>
<div>
<p style="font-size:18px;color:white;font-wieght:700;">Recently Asked Questions</p>
<?php query_posts('showposts=3'); ?>
<?php while (have_posts()): the_post(); ?>
<div id="faq">
<a href="<?php the_permalink() ?>"><?php the_title() ?></a><br />
<?php the_time('F jS, Y') ?>
<?php the_excerpt(); ?>
<?php comments_popup_link(); ?>
To see the answer to the question click <a href="<?php the_permalink() ?>">here</a>.<br /><br />
</div>
<?php endwhile; ?>
</div>

Any help is appreciated, thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T15:47:01+00:00Added an answer on May 19, 2026 at 3:47 pm

    Since you are running a loop, you should simply be able to use the code from your comments.php theme file. Here’s a pretty generic one. Just make sure you put the code inside the loop.

    <div id="comments">
    
    
    <?php if ( have_comments() ) : ?>
                <h3 id="comments-title"><?php
                printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number()),
                number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
                ?></h3>
    
    <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
                <div class="navigation">
                    <div class="nav-previous"><?php previous_comments_link('<span class="meta-nav">&larr;</span> Older Comments'); ?></div>
                    <div class="nav-next"><?php next_comments_link('Newer Comments <span class="meta-nav">&rarr;</span>'); ?></div>
                </div> <!-- .navigation -->
    <?php endif; // check for comment navigation ?>
    
                <ol class="commentlist">
                    <?php
                        wp_list_comments(array(
                            'type' => 'comment',
                            'avatar_size' => '35',
                            'style' => 'div',
                            'reverse_top_level' => true
                        ));
                    ?>
                </ol>
    
    <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
                <div class="navigation">
                    <div class="nav-previous"><?php previous_comments_link('<span class="meta-nav">&larr;</span> Older Comments'); ?></div>
                    <div class="nav-next"><?php next_comments_link('Newer Comments <span class="meta-nav">&rarr;</span>'); ?></div>
                </div><!-- .navigation -->
    <?php endif; // check for comment navigation ?>
    
    <?php else : // or, if we don't have comments:
    
        /* If there are no comments and comments are closed,
         * let's leave a little note, shall we?
         */
        if ( ! comments_open() ) :   ?>
    
        <!--<p class="nocomments">Comments are closed.</p>-->
    
    <?php endif; // end ! comments_open()
    endif; // end have_comments()
    
    comment_form(array(
        'comment_notes_after' => '<p style="margin: 0 0 10px 50px;color:gray;">&lt;b&gt; &lt;i&gt; and &lt;strike&gt; only</p>',
        'fields' => array(
            'author' => '<p class="comment-form-author">' . '<label for="author">Name</label> ' . ( $req ? '<span class="required">*</span> ' : '' ) .
                        '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',
            'email'  => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . '</label> ' . ( $req ? '<span class="required">*</span> ' : '' ) .
                        '<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>'
    
        )
    
      )
    );
    ?>
    
    </div><!-- #comments -->
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know what is the most efficient and practical way of
Hello everybody. I would like to know how to download and save a file
This has always confused me. It seems like this would be nicer: ["Hello", "world"].join("-")
The manual page for XML::Parser::Style::Objects is horrible. A simple hello world style program would
I would like to know if I can define custom assembly attributes. Existing attributes
i am converting a string to double i would like to know in advanced
I'm having problems deploying a simple WebServices app (like Hello World simple) to OC4J.
I'd like to create a basic Hello World style application for the IPhone using
Would it be possible to print Hello twice using single condition ? if condition
Is there the equivalent of the Hello World program for GIS applications? I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.