関数自体が未定義になってしまいます。
ヘッダーからget_post_type_archive_linkや、get_stylesheet_directory_uri()でカスタムテンプレートへのリンクを試みたときからそうなりました。もうそのコードは消したんですが</div><!-- .header -->前にa hrefで<?php echo get_stylesheet_directory_uri(); ?>/myposts.php" >などと試みました。
ヘッダーから直接リンクできない理由と解決策もわかりません。意味が分かりません。
いったいどうしてこうなったんですか?
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head profile="http://gmpg.org/xfn/11"> <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" /> <?php if ( current_theme_supports( 'bp-default-responsive' ) ) : ?><meta name="viewport" content="width=device-width, initial-scale=1.0" /><?php endif; ?> <title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> <?php bp_head(); ?> <?php wp_head(); ?> </head> <body <?php body_class(); ?> id="bp-default"> <?php do_action( 'bp_before_header' ); ?> <div class="con"> <div class='header'> <div class="headl" align=left><a href="<?php echo home_url(); ?>" title="<?php echo esc_attr_x( 'Home', 'Home page banner link title', 'buddypress' ); ?>"><img src="<?php echo get_stylesheet_directory_uri(); ?>/paintech.png" width=275 hight=66 class="paintechpic"></a></div> <div class="headr" align=right> <form action="<?php echo bp_search_form_action(); ?>" method="post" id="search-form"> <label for="search-terms" class="accessibly-hidden"><?php _e( 'Search for:', 'buddypress' ); ?></label> <input type="text" id="search-terms" name="search-terms" value="<?php echo isset( $_REQUEST['s'] ) ? esc_attr( $_REQUEST['s'] ) : ''; ?>" /> <?php echo bp_search_form_type_select(); ?> <input type="submit" name="search-submit" id="search-submit" value="<?php esc_attr_e( 'Search', 'buddypress' ); ?>" /> <?php wp_nonce_field( 'bp_search_form' ); ?> </form></div><!-- #search-form --> <?php do_action( 'bp_search_login_bar' ); ?> <?php do_action( 'bp_header' ); ?> </div><!-- .header --> <?php do_action( 'bp_after_header' ); ?> <?php do_action( 'bp_before_container' ); ?> コード
あなたの回答
tips
プレビュー