
[WORDPRESS] How to get and display article update date
Code single.php <?php if ( get_the_date() < get_the_modified_date() ) : ?> <time datetime=”<?ph […]
続きを読む
[WORDPRESS] How to apply CSS to a Custom post editing screen in the Admin panel
Code functions.php if($_GET[post_type] == ‘[Custom post name]’){ function admin_style_custom() { echo ‘ [CSS] […]
続きを読む
[WORDPRESS] How to hide “Description” of new category
Code functions.php function admin_style_cat_description() { echo ‘ <style> div.term-description-wrap{ di […]
続きを読む
[WORDPRESS] How to hide parent category registration of new category
Code functions.php function admin_style_category() { echo ‘ <style> div.term-parent-wrap{ display:none; […]
続きを読む
[WORDPRESS]How to apply CSS to the Admin Panel
Source code functions.php function admin_style() { echo ‘ [CSS] ‘.PHP_EOL; } add_action(‘admin_print_styles’, […]
続きを読む
[Smart Custom Fields] How to hide unfilled items
Code <?php $sub_img = SCF::get( ‘Subimage’ ); $sub_img = wp_get_attachment_image_src( $sub_img, ‘large’ ); […]
続きを読む
[Contact form7] How to transition to the Thank you page
Code function.php add_action( ‘wp_footer’, ‘send_page’ ); function send_page() { if( get_the_ID() == ‘[form pa […]
続きを読む
[WORDPRESS] How to add a tag to the header of a page
Code header.php <?php if (is_page(‘[Page ID]’)) { ?> <?php } ?>
続きを読む
[WordPress] How to display only specific custom posts in search results
Here’s how to make WORDPRESS site search show only specific custom post types in search results. Want to […]
続きを読む
【IE・Edge対応】日付入力フォームにカレンダーを表示させる方法
日付入力フォームにカレンダーを表示させる方法をご紹介します。 ChromeとFirefoxだけでよければすごく簡単 HTML5の<input type=”date”>を用いれば一発です […]
続きを読む