ããã«ã¡ã¯ï¼ããªã¼ã©ã³ã¹ã¨ã³ã¸ãã¢ã®ã®ãã£ã¡@nosecchi01ã§ãã ã¯ã¼ããã¬ã¹ã®ãµã ãã¤ã«ï¼ã¢ã¤ãã£ããï¼ãbackground-imageã§ä½¿ãæ¹æ³ããç´¹ä»ãã¾ãã ã³ã¼ããã³ããããã ããªã®ãªãä¸ç¬ã§çµäºãã¾ãã ã¨ããããã§ãæ©éã³ã¼ããç´¹ä» $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); echo '<div style="background-image: url('. $url.')"></div>'; the_post_thumbnailã¯<img>ã¿ã°ãè¿ãã¾ãããã©ããã¦ãbackgroundã§ããããã¨ããããã¾ãããã âurlãåå¾ãã¦ãããã°OKã§ãã$url = wp_get_attachment_url( get_post_thumbnail_id($post->ID)
{{#tags}}- {{label}}
{{/tags}}