WordPress.org

Ready to get started?Download WordPress

Forums

Redefining query_post within page (1 post)

  1. sprmrkt
    Member
    Posted 3 years ago #

    hi, i cannot find my way around this.

    i'm defining the content on the hp like this:

    <?php
    if (is_home()) {
    query_posts("cat=3&meta_key=City&meta_value=London");
    }
    ?>

    now, i want to set links to the menue (static links) which redefines that query, e.g. to this, adding variables:

    query_posts("cat=3&meta_key=City&meta_value=London&meta_key=Bourough&meta_value!=Chelsea");

    is this even possible without reloading the whole page? setting up a page for each of the combinations is not an option.

Topic Closed

This topic has been closed to new replies.

About this Topic