• dumbi.della.pira

    (@dumbidellapira)


    there is a page which had been assigned to a template like ‘page-name.php’, and in it, there is a loop with a query_posts function which retrieves posts from two categories.
    This page is inside a menu and on the same level (of that menu) there is the same category from which the page-name template’s a loop makes a request.
    The problem probably is in the menu which does not “says current” on the page, but in category menu’s item.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dumbi.della.pira

    (@dumbidellapira)

    the menu is:
    /
    ->category-1
    ->category-2
    ->page

    The page template:
    query_posts('cat=category-1,category-2');

    When the page is visualized, category-1 is selected.

    Thread Starter dumbi.della.pira

    (@dumbidellapira)

    Its difficult to understand what i mean?
    My english is understandable?

    Anyway… I resolved the problem using WP_query insted of query_posts, but i dont know why.

    G

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Why wordpress belive page is category?’ is closed to new replies.