WPメモ
記事に画像を挿入する際にリンク先の初期選択値を「なし」に
/wp-admin/options.php
image_default_link_type -> none
via : https://netaone.com/wp/wordpress-image-link-none/
previous_posts_link()に任意のclass名を追加する
add_filter('next_posts_link_attributes', 'posts_link_attributes');
add_filter('previous_posts_link_attributes', 'posts_link_attributes');
function posts_link_attributes(){
return 'class="class"';
}
via : https://kachibito.net/wp-code/adding-classes-to-previous_posts_link
/wp-admin/options.php
image_default_link_type -> none
via : https://netaone.com/wp/wordpress-image-link-none/
previous_posts_link()に任意のclass名を追加する
add_filter('next_posts_link_attributes', 'posts_link_attributes');
add_filter('previous_posts_link_attributes', 'posts_link_attributes');
function posts_link_attributes(){
return 'class="class"';
}
via : https://kachibito.net/wp-code/adding-classes-to-previous_posts_link