Created
January 2, 2024 23:55
-
-
Save henshaw/b57648278ba4a11583cc65bde63f0642 to your computer and use it in GitHub Desktop.
WordPress code for post title and excerpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1><?php the_title(); ?></h1> | |
<?php echo '<p>' . get_the_excerpt() . '</p>'; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Referenced on Google News Guide: How to optimize your site and article content to appear in Google News