is_page thinks is_archive
-
why does my wordpress think my pages are archives? I tried updating permalinks, i tried all kindsa stuff, but the wp_query doesn’t think its a page, it thinks its an archive.
the weird thing is that some pages work. ‘
just new ones don’t
i am confused.
Here is the var_dump($wp_query) if this helps:
—
object(WP_Query)#26 (24) {
[“post_count”]=>
int(0)
[“current_post”]=>
int(-1)
[“post”]=>
NULL
[“is_single”]=>
bool(false)
[“is_page”]=>
bool(false)
[“is_archive”]=>
bool(true)
[“is_date”]=>
bool(false)
[“is_year”]=>
bool(false)
[“is_month”]=>
bool(false)
[“is_day”]=>
bool(false)
[“is_time”]=>
bool(false)
[“is_author”]=>
bool(false)
[“is_category”]=>
bool(true)
[“is_search”]=>
bool(false)
[“is_feed”]=>
bool(false)
[“is_trackback”]=>
bool(false)
[“is_home”]=>
bool(false)
[“is_404”]=>
bool(true)
[“is_comments_popup”]=>
bool(false)
[“is_admin”]=>
bool(false)
[“is_paged”]=>
bool(false)
[“query”]=>
string(27) “category_name=contact-us%2F”
[“query_vars”]=>
array(7) {
[“category_name”]=>
string(10) “contact-us”
[“posts_per_page”]=>
string(1) “5”
[“what_to_show”]=>
string(5) “posts”
[“nopaging”]=>
bool(false)
[“cat”]=>
NULL
[“order”]=>
string(4) “DESC”
[“orderby”]=>
string(9) “date DESC”
}
[“posts”]=>
&NULL
}—-
The topic ‘is_page thinks is_archive’ is closed to new replies.