is_singular() just won't work
-
I’m using wp 3.9.1 with the plugin called Custom Content Type Manager.
I created a custom type called “aggregato”. Now I am building a WP_query for my front-page. I select all posts of two types. It works.
Then I want to show them differently. So inside the loop I tried
if ( is_singular('aggregato') ) { //my code here }
But it just doesn’t work. I tried is_single(), I tried $query->post-type, $post->post-type… nothing.
Any one has any idea on the reasons why this should not work??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘is_singular() just won't work’ is closed to new replies.