bearlakecvb

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: TEC conflict with AIT Themes City Guide theme #1302110
    bearlakecvb
    Participant

    Sorry,
    That entire code is all on line 593
    ((Line 593)) singularTemplate($template){$templates=array();$post=get_queried_object();$originalType=$post->post_type;$unprefixedType=WpLatteUtils::stripPrefix(‘post’,$post->post_type);$custom=get_post_meta(get_queried_object_id(),”_wp_{$unprefixedType}_template”,true);if(!$custom){$custom=get_post_meta(get_queried_object_id(),”_wp_{$originalType}_template”,true);}if($custom){$templates[]=$custom;}if(is_attachment()){$mimeType=explode(‘/’,get_post_mime_type());$templates[]=”{$mimeType[0]}-{$mimeType[1]}.php”;$templates[]=”attachment-{$mimeType[0]}-{$mimeType[1]}.php”;$templates[]=”attachment-{$mimeType[0]}.php”;$templates[]=”attachment-{$mimeType[1]}.php”;}else{$templates[]=”{$originalType}-{$post->post_name}.php”;$templates[]=”{$originalType}-{$post->ID}.php”;if($originalType!=$unprefixedType){$templates[]=”{$unprefixedType}-{$post->post_name}.php”;$templates[]=”{$unprefixedType}-{$post->ID}.php”;}}$templates[]=”{$originalType}.php”;if($originalType!=$unprefixedType){$templates[]=”{$unprefixedType}.php”;}$templates[]=”single-{$originalType}.php”;if($originalType!=$unprefixedType){$templates[]=”single-{$unprefixedType}.php”;}$templates[]=’single.php’;$templates[]=”singular.php”;$templates=array_unique($templates);return
    ((Line 594)) locate_template($templates);}}class

    in reply to: TEC conflict with AIT Themes City Guide theme #1302015
    bearlakecvb
    Participant

    Hi,
    Could you just tell me what to put in the CPT UI Custom Post plugin fields to attempt to create a custom post type that will make your Events plugin work? It has several fields that I don’t have any idea what text to type into the fields.
    Thanks, BLCVB

    in reply to: TEC conflict with AIT Themes City Guide theme #1300188
    bearlakecvb
    Participant

    Thanks for your reply and advice!
    Here is the code from line 593 of the Ait Theme (I have also posted it on AIT’s forum but can guarantee that they will say that they don’t support plugins):

    singularTemplate($template){$templates=array();$post=get_queried_object();$originalType=$post->post_type;$unprefixedType=WpLatteUtils::stripPrefix(‘post’,$post->post_type);$custom=get_post_meta(get_queried_object_id(),”_wp_{$unprefixedType}_template”,true);if(!$custom){$custom=get_post_meta(get_queried_object_id(),”_wp_{$originalType}_template”,true);}if($custom){$templates[]=$custom;}if(is_attachment()){$mimeType=explode(‘/’,get_post_mime_type());$templates[]=”{$mimeType[0]}-{$mimeType[1]}.php”;$templates[]=”attachment-{$mimeType[0]}-{$mimeType[1]}.php”;$templates[]=”attachment-{$mimeType[0]}.php”;$templates[]=”attachment-{$mimeType[1]}.php”;}else{$templates[]=”{$originalType}-{$post->post_name}.php”;$templates[]=”{$originalType}-{$post->ID}.php”;if($originalType!=$unprefixedType){$templates[]=”{$unprefixedType}-{$post->post_name}.php”;$templates[]=”{$unprefixedType}-{$post->ID}.php”;}}$templates[]=”{$originalType}.php”;if($originalType!=$unprefixedType){$templates[]=”{$unprefixedType}.php”;}$templates[]=”single-{$originalType}.php”;if($originalType!=$unprefixedType){$templates[]=”single-{$unprefixedType}.php”;}$templates[]=’single.php’;$templates[]=”singular.php”;$templates=array_unique($templates);return

    I have installed CPT UI Custom Post plugin. It has several fields that I don’t have any idea what text to type into the fields. Would it work to create a new Post Type if the theme doesn’t support other post types? I think that AIT doesn’t want to help because the City Guide theme has an Events Pro plugin that they want people to buy.
    Thanks for your help!
    Bear Lake CVB

    in reply to: TEC conflict with AIT Themes City Guide theme #1297466
    bearlakecvb
    Participant

    Hi,
    I enabled debugging and the error does looks like it is related to the custom post problem.

    Notice: Undefined property: WP_Post_Type::$post_type in /home/content/a2pnexwpnas01_data02/32/3445432/html/wp-content/themes/cityguide/ait-theme/@framework/libs/wplatte/wplatte.min.php on line 593

    How do I create a new post type? I found some plugins to create new custom post types but am not sure that is what I am supposed to do. This is our launching site for our new website so we can debug without bothering visitors.
    Thanks again for your help!
    Bear Lake CVB

    in reply to: TEC conflict with AIT Themes City Guide theme #1296015
    bearlakecvb
    Participant

    This reply is private.

Viewing 5 posts - 1 through 5 (of 5 total)