I'd like to use wordpress's own theme as a new line for the explanatory text of the post.

Asked 2 years ago, Updated 2 years ago, 93 views

I am creating my own theme for wordpress.
"I would like to break the ""first few lines of the article"" displayed under the article title in the list of articles posted on the top page."

When I put a new line on the Edit Post screen, it doesn't take effect.

PHP

<div class="box">
<h2>Work Information</h2>
<p><?php the_title();?>/p>
<p>Date:<?php the_time('n month j');?>/p>
<p><?php the_excerpt();?>/p>
</div>

code screen

Currently
Current View
Post Edit Screen

Ideal
Enter a description of the image here

php wordpress

2022-09-30 16:16

1 Answers

<?php the_excerpt();?>

<?php echo get_the_content();?>
It has been resolved by changing it.

Thank you for watching my question!!


2022-09-30 16:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.