Forums

Blog Page adding User Comments refreshes to Index on submit (5 posts)

  1. awilson1979
    Member
    Posted 1 month ago #

    All right first thing is first I do not know my hand from my face when it comes to wordPress second I didn't set this up I have just been tasked to fix the mess that has been handed over to us.

    My task it to take the Blog (page) and add a way for users to comment on the topics. now when I had the page set up using the ID=# it would redirect me to the index.php page on submitting the comment. but I had to go in and change the way the adders was displayed to say the name of the page not the ID# and now I get

    Bad Request
    Your browser sent a request that this server could not understand.

    Apache/1.3.33 Server at www.eeliosinc.com Port 80

    After reading the thousands of hit's Google came up with and here I have to call out for help Thanks in advanced.

  2. t31os_
    Member
    Posted 1 month ago #

    You form tag should look something like the following..

    <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">

    Download a copy of Wordpress if you need to, look at the default themes and how they do it..

  3. awilson1979
    Member
    Posted 1 month ago #

    and yes in the comments.php I have that exact same line.

    My one question is do you just included("comments.php"); into the Blog.php there is nowhere to enplane how to set this up, or is there and I just don't know were to look. Link would be nice

    Thanks again.

  4. t31os_
    Member
    Posted 1 month ago #

    I don't use an include, it's done in the single.php like so..

    <?php comments_template(); ?>
  5. awilson1979
    Member
    Posted 1 month ago #

    man that didn't work... I just don't get it.. I was under the esumption that this should just work.. and was easy.

Reply

You must log in to post.

About this Topic