PHP] add_themes_support (\
The next step is to add post type support. functions. Add_post_type_support() to the PHP file. The code is as follows: [PHP] \/ \/ add post_type \
[PHP] $args = array (… \
For example, if you add it to a style sheet, the post title will be hidden. [css] . format-status . Post Title {display: none;} If the [\/ CSS] style prompt format is built into the theme, it is likely that a specific style is specified for the theme to match the look and feel. You can create your own styles or modify existing styles. Here are some considerations. Please use the format so that the post can be identified as a specific type. Aside, link, and status formats – do not display title or author information. Keep it short. It should be put aside first, including one or two paragraphs. To allow comments, use _permalink(). Links must contain sentences with links. To allow comments, use _permalink(). The status of Peru () in the post cannot be included in the comment. Images, audio, and video must contain a single image, audio, or video with or without subtitles \/ text. Display content using plug-ins or standard embed. Quote – a short quote from the publisher without additional information. To display the referenced person’s name as a white line, you can enter the name in the post title, specify the style of the post, and display the_content() itself, but you can change the style to block reference, and then use the_title(). Chat – use style to display content in a fixed width font on a gray background. For sub themes, add_theme _support() is called after the parent theme. The code is as follows:
[php] add_action( ‘after_setup_theme’, ‘childtheme_formats’, 11 ); function childtheme_formats(){ add_theme_support( ‘post-formats’, array( ‘aside’, ‘gallery’, ‘link’ ) );} Don’t forget to add get_post_format() in [\/ PHP] search, archive, and individual post views. Obtain details and source code
Let readers know the type of content contained in the post at a glance. You can create similar or different ones as needed. You do not need to use all formats. Use the best for your website and audience. The last idea is that the post format is easy to use and adds some interest to the website. They don’t make all posts look like all posts. In addition to visual diversity, it also provides visual signals to help you identify different types of content on the site so that readers can more easily get what they want. Making more types of content may be more useful. It’s your turn! Use post format? Added to the theme? Have you made your own style? Is there anything to add? I’d like to hear your thoughts from the following comments.