Detect archive and category page

I would like to detect following pages:

http://192.168.1.100/wordpress/?m=201311 – blog archive

Read More

http://192.168.1.100/wordpress/?cat=1 – blog category

For example, post type I can easly detect with:

$page_id = get_queried_object_id();

if (get_post_type( $page_id ) != ‘slideshow’)

How about the above pages ? I mean any category or archive page.

Related posts

1 comment

Comments are closed.