質問編集履歴

4

余計なもの消去

2019/07/09 11:20

投稿

yusukeh
yusukeh

スコア15

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,6 @@
1
- ヘッダーからget_post_type_archive_linkやinclude、get_stylesheet_directory_uri()でカスタムテンプレートへのリンクを試みたときからそうなりました。もうそのコードは消したんです</div><!-- .header -->前a hrefで<?php echo get_stylesheet_directory_uri(); ?>/myposts.php" >どと試みした
1
+ 関数自体未定義になってしいます
2
+
3
+ ヘッダーからget_post_type_archive_linkや、get_stylesheet_directory_uri()でカスタムテンプレートへのリンクを試みたときからそうなりました。もうそのコードは消したんですが</div><!-- .header -->前にa hrefで<?php echo get_stylesheet_directory_uri(); ?>/myposts.php" >などと試みました。
2
4
 
3
5
  ヘッダーから直接リンクできない理由と解決策もわかりません。意味が分かりません。
4
6
 

3

コードを記述しました。

2019/07/09 11:20

投稿

yusukeh
yusukeh

スコア15

test CHANGED
File without changes
test CHANGED
@@ -1,5 +1,101 @@
1
- ヘッダーからget_post_type_archive_linkやinclude、get_stylesheet_directory_uri()でカスタムテンプレートのリンクを試みたときからそうなりました。もうそのコードは消したんですが
1
+ ヘッダーからget_post_type_archive_linkやinclude、get_stylesheet_directory_uri()でカスタムテンプレートのリンクを試みたときからそうなりました。もうそのコードは消したんですが</div><!-- .header -->前にa hrefで<?php echo get_stylesheet_directory_uri(); ?>/myposts.php" >などと試みました。
2
2
 
3
3
  ヘッダーから直接リンクできない理由と解決策もわかりません。意味が分かりません。
4
4
 
5
5
  いったいどうしてこうなったんですか?
6
+
7
+ ```<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
8
+
9
+
10
+
11
+ <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
12
+
13
+ <head profile="http://gmpg.org/xfn/11">
14
+
15
+ <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
16
+
17
+ <?php if ( current_theme_supports( 'bp-default-responsive' ) ) : ?><meta name="viewport" content="width=device-width, initial-scale=1.0" /><?php endif; ?>
18
+
19
+ <title><?php wp_title( '|', true, 'right' ); bloginfo( 'name' ); ?></title>
20
+
21
+ <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
22
+
23
+
24
+
25
+ <?php bp_head(); ?>
26
+
27
+ <?php wp_head(); ?>
28
+
29
+
30
+
31
+ </head>
32
+
33
+
34
+
35
+ <body <?php body_class(); ?> id="bp-default">
36
+
37
+
38
+
39
+ <?php do_action( 'bp_before_header' ); ?>
40
+
41
+ <div class="con">
42
+
43
+ <div class='header'>
44
+
45
+ <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>
46
+
47
+
48
+
49
+ <div class="headr" align=right> <form action="<?php echo bp_search_form_action(); ?>" method="post" id="search-form">
50
+
51
+ <label for="search-terms" class="accessibly-hidden"><?php _e( 'Search for:', 'buddypress' ); ?></label>
52
+
53
+ <input type="text" id="search-terms" name="search-terms" value="<?php echo isset( $_REQUEST['s'] ) ? esc_attr( $_REQUEST['s'] ) : ''; ?>" />
54
+
55
+
56
+
57
+
58
+
59
+ <?php echo bp_search_form_type_select(); ?>
60
+
61
+
62
+
63
+ <input type="submit" name="search-submit" id="search-submit" value="<?php esc_attr_e( 'Search', 'buddypress' ); ?>" />
64
+
65
+
66
+
67
+ <?php wp_nonce_field( 'bp_search_form' ); ?>
68
+
69
+
70
+
71
+ </form></div><!-- #search-form -->
72
+
73
+
74
+
75
+
76
+
77
+ <?php do_action( 'bp_search_login_bar' ); ?>
78
+
79
+
80
+
81
+
82
+
83
+ <?php do_action( 'bp_header' ); ?>
84
+
85
+
86
+
87
+ </div><!-- .header -->
88
+
89
+
90
+
91
+ <?php do_action( 'bp_after_header' ); ?>
92
+
93
+ <?php do_action( 'bp_before_container' ); ?>
94
+
95
+
96
+
97
+
98
+
99
+ コード
100
+
101
+ ```

2

まちがっていたので編集しました

2019/07/09 11:14

投稿

yusukeh
yusukeh

スコア15

test CHANGED
File without changes
test CHANGED
@@ -1,5 +1,5 @@
1
1
  ヘッダーからget_post_type_archive_linkやinclude、get_stylesheet_directory_uri()でカスタムテンプレートのリンクを試みたときからそうなりました。もうそのコードは消したんですが
2
2
 
3
- ヘッダーから直接読み込めない理由と解決策もわかりません。意味が分かりません。
3
+ ヘッダーから直接リンクできない理由と解決策もわかりません。意味が分かりません。
4
4
 
5
5
  いったいどうしてこうなったんですか?

1

まちがっていたので編集しました

2019/07/09 11:00

投稿

yusukeh
yusukeh

スコア15

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- ヘッダーからget_post_type_archive_linkやinclude、get_stylesheet_directory_uri()でカスタムテンプレート読み込みを試みたときからそうなりました。もうそのコードは消したんですが
1
+ ヘッダーからget_post_type_archive_linkやinclude、get_stylesheet_directory_uri()でカスタムテンプレートのリンクを試みたときからそうなりました。もうそのコードは消したんですが
2
2
 
3
3
  ヘッダーから直接読み込めない理由と解決策もわかりません。意味が分かりません。
4
4