This file contains hidden or 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
<h3>rss-antenna-view</h3> | |
<?php | |
$args=array( | |
'https://mmcd-web.sounds-stella.jp/feed/', | |
'https://ss-freemusic.sounds-stella.jp/feed/', | |
'https://mpss-blog.azurewebsites.net/feed/', | |
); | |
if($_GET['getsite']){$getsite = $_GET['getsite'];} |
This file contains hidden or 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
// カスタム投稿タイプの追加 | |
function codex_custom_init() { | |
$args = array( | |
'public' => true, | |
'label' => 'wp-web-content', | |
'supports' => array('title','editor','excerpt') | |
); | |
register_post_type( 'wp-web', $args ); | |
} | |
add_action( 'init', 'codex_custom_init' ); |
This file contains hidden or 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
//『bpm』のカラムを記事一覧に追加(右のbpm-は見出し) | |
function add_bpm_column( $new_column ) { | |
$new_column['bpm'] = 'bpm-'; | |
return $new_column; | |
} | |
add_action( 'manage_posts_columns', 'add_bpm_column' ); | |
//『bpm』のカラムで、値を取得 | |
function custom_posts_column( $column_name, $post_id ) { | |
if ( $column_name == 'bpm' ) { |
This file contains hidden or 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
function news_list(){ | |
$retHtml = '<ul>'; | |
global $post; | |
$arg = array( | |
'posts_per_page' => 3, | |
'orderby' => 'date', | |
'order' => 'DESC', | |
'category_name' => 'カテゴリのスラッグ', | |
); | |
$posts = get_posts($arg); |
This file contains hidden or 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
//『bpm』のカラムを記事一覧に追加 | |
function add_bpm_column( $new_column ) { | |
$new_column['bpm'] = 'bpm'; | |
return $new_column; | |
} | |
add_action( 'manage_posts_columns', 'add_bpm_column' ); | |
//『bpm』のカラムで、値を取得 | |
function custom_posts_column( $column_name, $post_id ) { |
This file contains hidden or 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
/* functions.phpにコピペすれば、jqueryを読まなくなるコード*/ | |
function remove_jq_script() { | |
$script_dir = get_template_directory_uri(); | |
wp_deregister_script( 'jquery' ); | |
} | |
add_action('wp_enqueue_scripts','remove_jq_script'); |
This file contains hidden or 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
<!--html--> | |
<div class="slider"> | |
<input type="radio" name="slider" title="slide1" checked="checked" class="slider__nav"/> | |
<input type="radio" name="slider" title="slide2" class="slider__nav"/> | |
<input type="radio" name="slider" title="slide3" class="slider__nav"/> | |
<input type="radio" name="slider" title="slide4" class="slider__nav"/> | |
<input type="radio" name="slider" title="slide5" class="slider__nav"/> | |
This file contains hidden or 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
<!--html & php(wp_is_mobile/スマホの時だけ出す) --> | |
<?php if(wp_is_mobile()): ?> | |
<input id="spmenu-check1" class="spmenu-check" type="checkbox"> | |
<label class="spmenu-label" for="spmenu-check1">めにゅー</label> | |
<ul class="spmenu-content"> | |
<li><a href="https://sounds-stella.jp/music-creation/about">■このサイトについて</a></li> | |
<li><a href="https://wp-web.sounds-stella.jp">■初期構築費用無料・WPサイト制作</a></li> | |
<li><a href="https://music-produce.sounds-stella.jp">■アレンジ(編曲)依頼受付</a></li> | |
<li><a href="https://sounds-stella.jp/music-creation/mail">■お問い合わせ・ご相談</a></li> |
This file contains hidden or 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
function deregister_styles() { | |
wp_deregister_style( 'wp-block-library' ); | |
} | |
add_action( 'wp_enqueue_scripts', 'deregister_styles' ); |
This file contains hidden or 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
<?php | |
$img = ImageCreateFromPNG('https://sounds-stella.jp/music-creation/wp-content/uploads/2018logo2.png'); | |
ImageFilter($img, IMG_FILTER_COLORIZE, 255, 0, 255, 0); | |
header('Content-Type: image/png'); | |
ImagePNG($img); | |
?> |
NewerOlder