[wp-trac] [WordPress Trac] #55638: Undefined property: WP_Post_Type::$post_type

WordPress Trac noreply at wordpress.org
Mon May 2 09:22:58 UTC 2022


#55638: Undefined property: WP_Post_Type::$post_type
-------------------------------+------------------------------
 Reporter:  pienoz             |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  5.9.3
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:
-------------------------------+------------------------------

Comment (by pienoz):

 I have resolved my problem :

 In single-programm.php  I have change the order line code :

 Before :

 ...
 global $wp_query;
 query_posts($args);
 ...
 get_header();


 After :

 get_header();
 ...
 global $wp_query;
 query_posts($args);

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55638#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list