Skip to content

Instantly share code, notes, and snippets.

@frontend-coder
Created July 10, 2022 11:03
Show Gist options
  • Save frontend-coder/18670e2b7c554a7fe20d1a09c1d270d0 to your computer and use it in GitHub Desktop.
Save frontend-coder/18670e2b7c554a7fe20d1a09c1d270d0 to your computer and use it in GitHub Desktop.
34. Як оформлювати пост-контент для сторінок index та archive
<article <?php post_class(); ?> id="post-<?php the_ID; ?>" data-post-id='<?php the_ID(); ?>' >
<div><?php the_title(); ?> </div>
<div><?php the_exerpt(); ?> </div>
<a href="<?php the_permalink(); ?>"> esc_html_e('Read more','domein'); </a>
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment