Forum Replies Created

Viewing 6 replies - 241 through 246 (of 246 total)
  • I’m in the same boat and I believe it happened with WordPress 3.1.4 as well. I tried upgrading to 3.2.1 thinking that would help. I’ve spent a perceived “eternity” with Hostgator support, including working with one rep on the phone. The server load was not high at all. There was nothing they could see on their end WHILE my browser was “spinning”. It seems as though the browser has problems contacting the web server when accessing WordPress. After some point, the pages and dashboard load and perform ok, then they start stalling again.

    The thing is, while the browser stalls trying to access WordPress, I could access static HTML files just fine and very quickly. So, there’s something up with the WordPress or PHP environment. I was starting to think it was an issue with my ISP but the poster above makes me question that now. My ISP is Comcast and I know of another Comcast user, not geographically close to me, who is experiencing the stalls as well.

    What PHP settings could we have Hostgator support check that could impact WordPress performance?

    Thanks!

    Peace…

    Thread Starter tomdkat

    (@tomdkat)

    That did it! Thanks!

    Peace…

    Thread Starter tomdkat

    (@tomdkat)

    Ok, I’ve found the code in question and I have an idea of how to deal with my problem.

    In wp-comments-post.php, these lines of code appear at the bottom of the file:

    $location = empty($_POST['redirect_to']) ? get_comment_link($comment_id) : $_POST['redirect_to'] . '#comment-' . $comment_id;
    $location = apply_filters('comment_post_redirect', $location, $comment);
    
    wp_redirect($location);

    Since I’m not using a “redirect_to” parameter, the “get_comment_link()” function is invoked. As a result, after posting a comment the browser gets redirected to a URL like:

    https://www.mysite.com/work/blog/?p=3&cpage=1#comment-42

    I would like the browser to get redirected to this URL instead:

    https://www.mysite.com/work/blog/?p=3&cpage=1#content

    So, would I implement a version of get_comment_link() to return the URL I want or would I change wp-comments-post.php?

    Thanks!

    Peace…

    Thread Starter tomdkat

    (@tomdkat)

    Anyone have any ideas?

    Thanks!

    Peace…

    Thread Starter tomdkat

    (@tomdkat)

    Well, I got the missing piece of this puzzle figured out.

    After going through this page:

    https://codex.www.ads-software.com/Template_Tags/query_posts

    I learned I needed to add this:

    [?php
    // retrieve one post with an ID of 5
    query_posts(‘p=5’);
    ?]

    Of course, I replaced the ‘[‘ and ‘]’ with ‘<‘ and ‘>’, respectively. ??

    Doing this, along with borrowing the code from the index.php and single,php files in the default WordPress theme, I have something that mostly does what I need. ??

    Now I just need to deal with what happens when a new comment is left but I think I can figure that out… eventually. ??

    Peace…

    Thread Starter tomdkat

    (@tomdkat)

    Thanks! That is actually the page I read to get introduced to “The Loop”. ??

    In fact, I started with the code snipets on that page and was able to get the exceprts of entries in my test blog but with links to the individual blog entries. Unfortunately, that article stops short of what I’m trying to do, which is why I started this thread.

    Peace…

Viewing 6 replies - 241 through 246 (of 246 total)