質問編集履歴

2

追記

2018/09/02 23:19

投稿

naonao11
naonao11

スコア97

test CHANGED
File without changes
test CHANGED
@@ -4,10 +4,122 @@
4
4
 
5
5
  ```ここに言語を入力
6
6
 
7
- use of undefined constant php - assumed 'php'(this will throw an error in a future version of php)
7
+ use of undefined constant php - assumed 'php'(this will throw an error in a future version of php) archive.php on line 1
8
8
 
9
9
  ```
10
10
 
11
11
 
12
12
 
13
13
  このエラーを消すにはどうしたらいいのでしょうか、ご助力よろしくお願いします.
14
+
15
+
16
+
17
+ sorcecodeについて
18
+
19
+ ```php
20
+
21
+ <?php/*
22
+
23
+ Template Name: Archive
24
+
25
+ */
26
+
27
+ ?>
28
+
29
+ <?php get_header();?>
30
+
31
+ <main id="category_main" <?php post_class();?>>
32
+
33
+
34
+
35
+ <?php
36
+
37
+ $categories = get_the_category();
38
+
39
+ $tags = get_the_tags();
40
+
41
+ ?>
42
+
43
+ <header>
44
+
45
+ <div id="header_layer">
46
+
47
+ <?php echo category_description();?>
48
+
49
+ <nav id="header_nav">
50
+
51
+ </nav>
52
+
53
+ </div><!--END-header_layer-->
54
+
55
+ </header>
56
+
57
+ <section class="articles_index sec columnColor">
58
+
59
+ <h1><?php the_archive_title('『','』に関するコラム');?></h1>
60
+
61
+ <div class="columnBox">
62
+
63
+ <?php
64
+
65
+
66
+
67
+ if(have_posts()):/*if(have_posts()):*/ while (have_posts()):the_post();?>
68
+
69
+ <div class="columnArticle">
70
+
71
+ <a class="thumbnail" href="<?php the_permalink(); ?>">
72
+
73
+ <?php the_post_thumbnail(); ?>
74
+
75
+ </a>
76
+
77
+ <div class="textBox">
78
+
79
+ <h2><a href="<?php the_permalink(); ?>"><?php the_title();?></a></h2>
80
+
81
+ <p class="date"><?php the_time('Y年n月j日'); ?></p>
82
+
83
+ </div>
84
+
85
+ <div class="excerpt"><?php the_excerpt();?></div>
86
+
87
+ </div>
88
+
89
+ <?php endwhile;?>
90
+
91
+ <?php
92
+
93
+ endif;
94
+
95
+ wp_reset_postdata();
96
+
97
+ ?>
98
+
99
+ <div class="pager">
100
+
101
+ <ul class="page-numbers">
102
+
103
+ <?php if (function_exists("pagination")) {
104
+
105
+ pagination($additional_loop->max_num_pages);
106
+
107
+ } ?>
108
+
109
+ </ul>
110
+
111
+ </div>
112
+
113
+ </div>
114
+
115
+ </div>
116
+
117
+ </section>
118
+
119
+
120
+
121
+ </main>
122
+
123
+ <?php get_footer();?>
124
+
125
+ ```

1

追記

2018/09/02 23:19

投稿

naonao11
naonao11

スコア97

test CHANGED
File without changes
test CHANGED
@@ -10,4 +10,4 @@
10
10
 
11
11
 
12
12
 
13
- ご助力よろしくお願いします.
13
+ このエラーを消すにはどうしたらいいのでしょうか、ご助力よろしくお願いします.