LOCAL MENU

基本情報

  • TYPEカテゴリーアーカイブ
  • TEMPLATEcategory.php
  • CATEGORY ID3
  • SLUGcategory2

タイトル

get_the_title() 投稿 3
get_queried_object()->post_title
get_queried_object()->label
get_queried_object()->name カテゴリー 2
get_the_archive_title() カテゴリー: カテゴリー 2
get_the_author() ギルボア サント

条件分岐タグ

タグ パラメータ 戻り値
ログイン状態 is_user_logged_in() is_user_logged_in()
フロントページ is_front_page() is_front_page()
メインページ is_home() is_home()
検索結果ページ is_search() is_search()
404ページ is_404() is_404()
シングルページ is_singular([$post_types]) is_singular()
投稿ページ is_single([$post]) is_single()
is_single(1)
is_single('post2')
is_single('投稿 3')
is_single(array(1, 'post2', '投稿 3'))
固定ページ is_page([$page]) is_page()
is_page(92)
is_page('custom_page')
is_page('固定ページ 3')
is_page(array(2, 'page_3', 'ホーム(フロントページ)'))
is_paged() is_paged()
is_page_template([$template]) is_page_template()
is_page_template('custom-page.php')
アーカイブページ is_archive() is_archive() 1
作成者ページ is_author([$author]) is_author()
is_author(2)
is_author('MARIDA CRUZ')
is_author('suberoa')
is_author(array(2, 'MARIDA CRUZ', 'mineva'))
is_multi_author() is_multi_author() 1
カテゴリーページ is_category([$category]) is_category() 1
is_category(1)
is_category('category2') 1
is_category('カテゴリー 3')
is_category(array(1, 'category2')) 1
in_category($category[, $_post]) in_category(1)
in_category('category2') 1
in_category('カテゴリー 3')
in_category(array(1, 'category2')) 1
タグページ is_tag([$tag]) is_tag()
日付別ページ is_date() is_date()
is_year() is_year()
is_month() is_month()
is_time() is_time()
is_new_day() is_new_day() 1
タクソノミーページ is_tax([$taxonomy], [$term]) is_tax()
has_term([$term], $taxonomy, [$post]) has_term()
term_exists($term, [$taxonomy], [$parent]) term_exists($term)
is_taxonomy_hierarchical($taxonomy) is_taxonomy_hierarchical($taxonomy)
taxonomy_exists($taxonomy) taxonomy_exists($taxonomy)
抜粋あり has_excerpt([$id]) has_excerpt()
タグのある投稿 has_tag([$tag], [$post]) has_tag()
階層を持つ投稿タイプ is_post_type_hierarchical($post_type) is_post_type_hierarchical($post_type)
投稿タイプアーカイブ is_post_type_archive([$post_types]) is_post_type_archive()

グローバル変数

$template /virtual/hyper920/public_html/wp.2nd-half.jp/wp/wp-content/themes/hyper920/category.php
basename($template) category.php
basename($template, '.php') category
$psot
WP_Post Object
(
    [ID] => 106
    [post_author] => 2
    [post_date] => 2019-11-20 19:03:48
    [post_date_gmt] => 2019-11-20 10:03:48
    [post_content] => 
    [post_title] => 投稿 3
    [post_excerpt] => 
    [post_status] => publish
    [comment_status] => open
    [ping_status] => open
    [post_password] => 
    [post_name] => post3
    [to_ping] => 
    [pinged] => 
    [post_modified] => 2019-12-16 19:02:55
    [post_modified_gmt] => 2019-12-16 10:02:55
    [post_content_filtered] => 
    [post_parent] => 0
    [guid] => https://wp.2nd-half.jp/?p=106
    [menu_order] => 13
    [post_type] => post
    [post_mime_type] => 
    [comment_count] => 0
    [filter] => raw
)
$author
$authordata
WP_User Object
(
    [data] => stdClass Object
        (
            [ID] => 2
            [user_login] => User1
            [user_pass] => $P$B4pAisprf0TnmmNT6mqzpWEe3Zw29v/
            [user_nicename] => gilboa
            [user_email] => 920.1q57@gmail.com
            [user_url] => http://www.gundam-unicorn.net/tv/character/24.php
            [user_registered] => 2019-11-20 09:59:11
            [user_activation_key] => 
            [user_status] => 0
            [display_name] => ギルボア サント
        )

    [ID] => 2
    [caps] => Array
        (
            [author] => 1
        )

    [cap_key] => wp_wp2ndhalfcapabilities
    [roles] => Array
        (
            [0] => author
        )

    [allcaps] => Array
        (
            [upload_files] => 1
            [edit_posts] => 1
            [edit_published_posts] => 1
            [publish_posts] => 1
            [read] => 1
            [level_2] => 1
            [level_1] => 1
            [level_0] => 1
            [delete_posts] => 1
            [delete_published_posts] => 1
            [author] => 1
        )

    [filter] => 
    [site_id:WP_User:private] => 1
)
1
$currentday 20.11.19
$currentmonth 11
$page 1
$paged 0
$pages Array ( [0] => ) 1
$multipage 0
$more 0
$numpages 1

関数

get_the_title() 投稿 3
get_post_type() post
get_queried_object()
WP_Term Object
(
    [term_id] => 3
    [name] => カテゴリー 2
    [slug] => category2
    [term_group] => 0
    [term_taxonomy_id] => 3
    [taxonomy] => category
    [description] => 
    [parent] => 0
    [count] => 1
    [filter] => raw
    [term_order] => 2
    [cat_ID] => 3
    [category_count] => 1
    [category_description] => 
    [cat_name] => カテゴリー 2
    [category_nicename] => category2
    [category_parent] => 0
)
get_query_var('p') 0
get_query_var('page_id') 0
get_query_var('name')
get_query_var('pagename')
get_query_var('page')
get_query_var('paged') 0
get_query_var('cat') 3
get_query_var('category_name') category2
get_the_category()
Array
(
    [0] => WP_Term Object
        (
            [term_id] => 3
            [name] => カテゴリー 2
            [slug] => category2
            [term_group] => 0
            [term_taxonomy_id] => 3
            [taxonomy] => category
            [description] => 
            [parent] => 0
            [count] => 1
            [filter] => raw
            [term_order] => 2
            [cat_ID] => 3
            [category_count] => 1
            [category_description] => 
            [cat_name] => カテゴリー 2
            [category_nicename] => category2
            [category_parent] => 0
        )

)
get_category(1)
WP_Term Object
(
    [term_id] => 1
    [name] => カテゴリー 1
    [slug] => category1
    [term_group] => 0
    [term_taxonomy_id] => 1
    [taxonomy] => category
    [description] => 
    [parent] => 0
    [count] => 2
    [filter] => raw
    [term_order] => 3
    [cat_ID] => 1
    [category_count] => 2
    [category_description] => 
    [cat_name] => カテゴリー 1
    [category_nicename] => category1
    [category_parent] => 0
)
get_category_link(1) https://wp.2nd-half.jp/category1/

マジック定数(PHP)

__FILE__ /virtual/hyper920/public_html/wp.2nd-half.jp/wp/wp-content/themes/hyper920/category.php
__DIR__ /virtual/hyper920/public_html/wp.2nd-half.jp/wp/wp-content/themes/hyper920
__LINE__ 68
__FUNCTION__
__METHOD__
__CLASS__
__TRAIT__
__NAMESPACE__

サーバー変数(PHP)

$_SERVER['SERVER_NAME'] wp.2nd-half.jp
$_SERVER['REQUEST_URI'] /category2/
$_SERVER['REQUEST_METHOD'] GET
$_SERVER['DOCUMENT_ROOT'] /virtual/hyper920/public_html/wp.2nd-half.jp
$_SERVER['SCRIPT_FILENAME'] /virtual/hyper920/public_html/wp.2nd-half.jp/index.php
$_SERVER['SCRIPT_NAME'] /index.php
$_SERVER['SERVER_PROTOCOL'] HTTP/2.0
$_SERVER['HTTPS'] on
$_SERVER['QUERY_STRING']
$_SERVER['PHP_SELF'] /index.php
$_SERVER['REMOTE_ADDR'] 216.73.216.27
$_SERVER['REMOTE_PORT'] 1388
$_SERVER['REMOTE_HOST']
$_SERVER['HTTP_HOST'] wp.2nd-half.jp
$_SERVER['HTTP_REFERER'] https://wp.2nd-half.jp/category2
$_SERVER['HTTP_USER_AGENT'] Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
$_SERVER['HTTP_CONNECTION'] close
$_SERVER['SERVER_SOFTWARE'] Apache
$_SERVER['REQUEST_TIME'] 1762587993
$_SERVER['HTTP_ACCEPT'] */*
$_SERVER['HTTP_ACCEPT_CHARSET']
$_SERVER['HTTP_ACCEPT_ENCODING'] gzip, br, zstd, deflate
$_SERVER['HTTP_ACCEPT_LANGUAGE']
$_SERVER['SERVER_PORT'] 443
$_SERVER['GATEWAY_INTERFACE'] CGI/1.1
$_SERVER['SERVER_ADDR'] 202.172.28.17
$_SERVER['SERVER_ADMIN'] info@coreserver.jp
$_SERVER['SERVER_SIGNATURE']
$_SERVER['PATH_TRANSLATED']
$_SERVER['PHP_AUTH_DIGEST']
$_SERVER['PHP_AUTH_USER']
$_SERVER['PHP_AUTH_PW']
$_SERVER['AUTH_TYPE']
$_SERVER['PATH_INFO']
$_SERVER['ORIG_PATH_INFO']