Modify wp_query

  • MeMeMe

    #7202

    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.

    Admin

    Syahir Hakim

    #37406

    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?

    MeMeMe

    #37407

    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:

    http://wp.smashingmagazine.com/2013/01/14/using-wp_query-wordpress/

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

You must be logged in to reply to this topic.