• I have added a blog to my site which can be seen here: http://www.beckin.com/blog/index.php

    As you can see I can see my post but there is no link for people to post comments and etc. I have added this above my head tags

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', false);
    require('wp-blog-header.php');
    ?>

    And this in the body:

    <?php
    $posts = get_posts('numberposts=10&order=ASC&orderby=post_title');
    foreach ($posts as $post) : start_wp(); ?>
    <?php the_date(); echo ""; ?>
    <?php the_title(); ?>
    <?php the_excerpt(); ?>
    <?php
    endforeach;
    ?>

    [Please post code snippets between backticks or use the code button.]

    What is is needed to get the post a comment link to show and etc? I think I would also like a link that will allow people to post there own articles also.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Correct me if I am wrong, but I believe what you are looking for is your comments template. You can add your comments template to your post template using the following tag:

    <?php comments_template(); ?>

    Thread Starter tech0925

    (@tech0925)

    Thanks ColinMorgan,

    That may be what I need, however I added your php code right below the other like this and it did not seem to do anything ;(

    <?php
    $posts = get_posts('numberposts=10&order=ASC&orderby=post_title');
    foreach ($posts as $post) : start_wp(); ?>
    <?php the_date(); echo ""; ?>
    <?php the_title(); ?>
    <?php the_excerpt(); ?>
    <?php
    endforeach;
    ?>
    <?php comments_template(); ?>

    Any suggestions?

    Which template is your code located in?

    Thread Starter tech0925

    (@tech0925)

    OIC,

    I might not have been to clear, sorry. I am not using a template. I have an existing website that I am trying to add wordpress to one page of my site.

    Thanks!

    Thread Starter tech0925

    (@tech0925)

    Not sure if I should mention also that I created a folder called blog and installed wordpress. I then removed their index.php which loads everything with my own blog page and called it index.php. I added the above codes to the page which allowed me to keep my theme but just add the post to my page. Now I am trying to figure out what else to add so others can comment on my posts or articles.

    Thanks, hopefully that explains everything.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Website WordPress Conversion help.’ is closed to new replies.