Revision: 44466
                            
                                                            
                                    
                                        
Initial Code
                                    
                                    
                                                            
                                    
                                        
Initial URL
                                    
                                    
                                
                                                            
                                    
                                        
Initial Description
                                    
                                    
                                
                                                            
                                    
                                        
Initial Title
                                    
                                    
                                                            
                                    
                                        
Initial Tags
                                    
                                    
                                
                                                            
                                    
                                        
Initial Language
                                    
                                    
                                                    
                        at April 12, 2011 10:44 by alexeihidalgo
                            
                            Initial Code
<?php
   global $wp_query;
   $post_id = $wp_query->post->ID;
   $type = get_post_type(get_the_ID());
 
   if (($type == "novedades")) {
       //estoy en custom post type novedades
   } elseif (is_single()) {
       //estoy en un post
   } elseif (is_home()) {
       //estoy  en el home de sitio
   } elseif (is_page('230')) {
       //estoy  en la pagina id 230
   }
 
   else {
       //estoy  en otro sector de WP
   }
?>
                                Initial URL
Initial Description
Initial Title
Test if we are on a custom post type in wordpress
Initial Tags
Initial Language
PHP