Last active
July 7, 2022 11:47
-
-
Save frontend-coder/b6d534fd94d5139743a5feae1aa9f146 to your computer and use it in GitHub Desktop.
31. Як добавити підтримку всіх типів записів #wordpress
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
add_theme_support( 'post-thumbnails' ); | |
// Добавити цю стрічку | |
add_theme_support( 'post-formats', array('aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'chat', 'audio') ); |
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
<body <?php body_class(); ?> > |
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
<div <?php post_class(); ?> > | |
добавляємо до обгортки картки поста |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment