The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Comment link quits working after editing index.php (2 posts)

  1. _ardnas
    Posted 10 years ago #

    Well, I've tried to search for two hours, and I just don't get it. I recently installed the latest version of WordPress (located at http://www.daisymedia.net/movies) and I'm trying to get only posts from category 17 to show up on the index page. So I added the following code right after the header code in index.php

    <?php query_posts('cat=17'); ?>

    This results in only the posts from cat 17 to show up on the index page, which is exactly what I want, but when doing this the comment link stops working. When I click on it, nothing really happens, only the url on the address bar changes. If I take the above code away, it works again. How can I get this to work without the comment link freezing on me? Any help gladly appreciated. ^^

  2. _ardnas
    Posted 10 years ago #

    Oh, I fixed it now. I seemed to have gone the wrong way 'round the problem. I installed a plugin and the problem's gone now. ^_^

Topic Closed

This topic has been closed to new replies.

About this Topic