Support

Account

Home Forums Front-end Issues pre_get_posts – organising CPT posts with Datepicker field Reply To: pre_get_posts – organising CPT posts with Datepicker field

  • Hi Keith, I’m getting ‘Parse error: syntax error’ for the curly bracket at the end of this line:

    if ( is_post_type_archive( 'my_custom_post_type' ) && !empty( $query->query['post_type'] == 'my_custom_post_type' ) {

    Nothing I have tried seems to fix the issue. Thank you!