Modify wp_query

  • MeMeMe


    I am looking at the archive.php and I don’t understand how it gets the posts it displays.

    I need to substitute my own post query (I’m using scribu’s posts 2 post plugin), but I see no WP_Query statement to modify.


    Syahir Hakim


    The theme is not using any custom query on the archive page, so there is no WP_Query statement in that file. What are you trying to achieve with that plugin?



    I havee figured it out, thanks. In case anyone else is in the same situation:

    I was trying to add some connection information, required by the posts 2 posts plugin to work efficiently.

    I realise I had a basic misunderstanding of the way wordpress works – that it does a default wp_query behind the scenes and that doesn’t need to get stated explicitly. I have created my own to replace it, thanks to a very useful tutorial I found:

Viewing 3 posts - 1 through 3 (of 3 total)

  • You must be logged in to reply to this topic.