質問編集履歴
2
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -51,3 +51,42 @@
|
|
51
51
|
remove_filter('the_content', 'wpautop');
|
52
52
|
remove_filter('the_excerpt', 'wpautop');
|
53
53
|
|
54
|
+
---------------
|
55
|
+
### 下記追記
|
56
|
+
下記のコードでも同様の現象がでています。
|
57
|
+
|
58
|
+
### 該当のソースコード
|
59
|
+
```html
|
60
|
+
|
61
|
+
<ul class="contents-row">
|
62
|
+
<?php if (have_posts()) : ?>
|
63
|
+
<?php while (have_posts()) : the_post(); ?>
|
64
|
+
<li class="contents-box">
|
65
|
+
<a>
|
66
|
+
<?php if (has_post_thumbnail()) : ?>
|
67
|
+
<?php echo get_the_post_thumbnail(); ?>
|
68
|
+
<?php endif; ?>
|
69
|
+
<p class="contents-category"><?php the_category(' '); ?></p>
|
70
|
+
<p class="front-title font-b"><?php echo get_the_title(); ?></p>
|
71
|
+
<p class="front-time"><time datetime="<?php echo get_the_date('Y-m-d'); ?>"><?php echo get_the_date(); ?></p>
|
72
|
+
</a>
|
73
|
+
</li>
|
74
|
+
<?php endwhile; ?>
|
75
|
+
<?php endif; ?>
|
76
|
+
</ul>
|
77
|
+
```
|
78
|
+
|
79
|
+
### 表示されるコード
|
80
|
+
```html
|
81
|
+
|
82
|
+
<ul class="contents-row">
|
83
|
+
<li class="contents-box">
|
84
|
+
<a><img width="1588" height="697" src="http://newkotori.local/wp-content/uploads/"> </a> ← </a>が自動挿入される
|
85
|
+
<p class="contents-category">
|
86
|
+
<a></a> ← <a></a>が自動挿入される
|
87
|
+
<a href="http://newkotori.local/category/knowledge/" rel="category tag">知識</a></p>
|
88
|
+
<p class="front-title font-b">second</p>
|
89
|
+
<p class="front-time"><time datetime="2022-07-20">2022-07-20</time></p>
|
90
|
+
</li>
|
91
|
+
</ul>
|
92
|
+
|
1
コード編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,6 +7,8 @@
|
|
7
7
|
どなたかご教授いただけませんでしょうか。
|
8
8
|
|
9
9
|
### 該当のソースコード
|
10
|
+
```html
|
11
|
+
|
10
12
|
<ul class="contents-row">
|
11
13
|
<a>
|
12
14
|
<?php if (have_posts()) : ?>
|
@@ -23,8 +25,10 @@
|
|
23
25
|
<?php endif; ?>
|
24
26
|
</a>
|
25
27
|
</ul>
|
28
|
+
```
|
26
29
|
|
27
30
|
### 表示されるコード
|
31
|
+
```html
|
28
32
|
|
29
33
|
<ul class="contents-row">
|
30
34
|
<a></a> ← </a>が自動挿入される
|
@@ -38,6 +42,9 @@
|
|
38
42
|
</li>
|
39
43
|
</ul>
|
40
44
|
|
45
|
+
```
|
46
|
+
|
47
|
+
|
41
48
|
### 試したこと
|
42
49
|
function.phpに下記コードを追記したが直らず
|
43
50
|
|