基本情報
- TYPEカスタム投稿タイプアーカイブ
- TEMPLATEarchive.php
- SLUG
- USERミネバ ザビ(1)
タイトル
| get_the_title() |
カスタム投稿 2-2 |
| get_queried_object()->post_title |
|
| get_queried_object()->label |
CPT 2 |
| get_queried_object()->name |
cpt2 |
| get_the_archive_title() |
アーカイブ: CPT 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() |
|
| is_category(1) |
|
| is_category('category2') |
|
| is_category('カテゴリー 3') |
|
| is_category(array(1, 'category2')) |
|
| in_category($category[, $_post]) |
in_category(1) |
|
| in_category('category2') |
|
| in_category('カテゴリー 3') |
|
| in_category(array(1, 'category2')) |
|
| タグページ |
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() |
1 |
グローバル変数
| $template |
/virtual/hyper920/public_html/wp.2nd-half.jp/wp/wp-content/themes/hyper920/archive.php |
| basename($template) |
archive.php |
| basename($template, '.php') |
archive |
| $psot |
WP_Post Object
(
[ID] => 204
[post_author] => 1
[post_date] => 2019-12-20 13:41:32
[post_date_gmt] => 2019-12-20 04:41:32
[post_content] =>
[post_title] => カスタム投稿 2-2
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => cpt_2_2
[to_ping] =>
[pinged] =>
[post_modified] => 2019-12-20 13:41:32
[post_modified_gmt] => 2019-12-20 04:41:32
[post_content_filtered] =>
[post_parent] => 0
[guid] => https://wp.2nd-half.jp/?post_type=cpt2&p=204
[menu_order] => 0
[post_type] => cpt2
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
|
| $author |
|
| $authordata |
WP_User Object
(
[data] => stdClass Object
(
[ID] => 1
[user_login] => hyper920
[user_pass] => $P$BVIvjrayB.kiikKs.WuQOjGyA67s3Z1
[user_nicename] => mineva
[user_email] => 920.hyper@gmail.com
[user_url] => http://www.gundam-unicorn.net/tv/character/02.php
[user_registered] => 2019-11-16 03:05:19
[user_activation_key] =>
[user_status] => 0
[display_name] => ミネバ ザビ
)
[ID] => 1
[caps] => Array
(
[administrator] => 1
)
[cap_key] => wp_wp2ndhalfcapabilities
[roles] => Array
(
[0] => administrator
)
[allcaps] => Array
(
[switch_themes] => 1
[edit_themes] => 1
[activate_plugins] => 1
[edit_plugins] => 1
[edit_users] => 1
[edit_files] => 1
[manage_options] => 1
[moderate_comments] => 1
[manage_categories] => 1
[manage_links] => 1
[upload_files] => 1
[import] => 1
[unfiltered_html] => 1
[edit_posts] => 1
[edit_others_posts] => 1
[edit_published_posts] => 1
[publish_posts] => 1
[edit_pages] => 1
[read] => 1
[level_10] => 1
[level_9] => 1
[level_8] => 1
[level_7] => 1
[level_6] => 1
[level_5] => 1
[level_4] => 1
[level_3] => 1
[level_2] => 1
[level_1] => 1
[level_0] => 1
[edit_others_pages] => 1
[edit_published_pages] => 1
[publish_pages] => 1
[delete_pages] => 1
[delete_others_pages] => 1
[delete_published_pages] => 1
[delete_posts] => 1
[delete_others_posts] => 1
[delete_published_posts] => 1
[delete_private_posts] => 1
[edit_private_posts] => 1
[read_private_posts] => 1
[delete_private_pages] => 1
[edit_private_pages] => 1
[read_private_pages] => 1
[delete_users] => 1
[create_users] => 1
[unfiltered_upload] => 1
[edit_dashboard] => 1
[update_plugins] => 1
[delete_plugins] => 1
[install_plugins] => 1
[update_themes] => 1
[install_themes] => 1
[update_core] => 1
[list_users] => 1
[remove_users] => 1
[promote_users] => 1
[edit_theme_options] => 1
[delete_themes] => 1
[export] => 1
[copy_posts] => 1
[cp_view_post_permalinks] => 1
[cp_view_category_permalinks] => 1
[administrator] => 1
)
[filter] =>
[site_id:WP_User:private] => 1
)
1
|
| $currentday |
20.12.19 |
| $currentmonth |
12 |
| $page |
1 |
| $paged |
0 |
| $pages |
Array
(
[0] =>
)
1 |
| $multipage |
0 |
| $more |
0 |
| $numpages |
1 |
関数
| get_the_title() |
カスタム投稿 2-2 |
| get_post_type() |
cpt2 |
| get_queried_object() |
WP_Post_Type Object
(
[name] => cpt2
[label] => CPT 2
[labels] => stdClass Object
(
[name] => CPT 2
[singular_name] => CPT 2
[add_new] => 新規追加
[add_new_item] => 新規CPT 2を追加
[edit_item] => CPT 2を編集
[new_item] => 新規 CPT 2
[view_item] => 表示 CPT 2
[view_items] => 表示 CPT 2
[search_items] => CPT 2を検索
[not_found] => CPT 2 が見つかりませんでした。
[not_found_in_trash] => ゴミ箱内にCPT 2が見つかりません。
[parent_item_colon] =>
[all_items] => CPT 2一覧
[archives] => CPT 2一覧
[attributes] => 投稿の属性
[insert_into_item] => 投稿に挿入
[uploaded_to_this_item] => この投稿へのアップロード
[featured_image] => アイキャッチ画像
[set_featured_image] => アイキャッチ画像を設定
[remove_featured_image] => アイキャッチ画像を削除
[use_featured_image] => アイキャッチ画像として使用
[filter_items_list] => 投稿一覧を絞り込む
[filter_by_date] => 日付で絞り込む
[items_list_navigation] => 投稿リストナビゲーション
[items_list] => 投稿リスト
[item_published] => 投稿を公開しました。
[item_published_privately] => 投稿を限定公開しました。
[item_reverted_to_draft] => 投稿を下書きに戻しました。
[item_scheduled] => 投稿を予約しました。
[item_updated] => 投稿を更新しました。
[item_link] => 投稿リンク
[item_link_description] => 投稿へのリンク。
[menu_name] => CPT 2
[name_admin_bar] => CPT 2
)
[description] =>
[public] => 1
[hierarchical] =>
[exclude_from_search] =>
[publicly_queryable] => 1
[show_ui] => 1
[show_in_menu] => 1
[show_in_nav_menus] => 1
[show_in_admin_bar] => 1
[menu_position] => 5
[menu_icon] =>
[capability_type] => post
[map_meta_cap] => 1
[register_meta_box_cb] =>
[taxonomies] => Array
(
)
[has_archive] => 1
[query_var] =>
[can_export] =>
[delete_with_user] =>
[template] => Array
(
)
[template_lock] =>
[_builtin] =>
[_edit_link] => post.php?post=%d
[cap] => stdClass Object
(
[edit_post] => edit_post
[read_post] => read_post
[delete_post] => delete_post
[edit_posts] => edit_posts
[edit_others_posts] => edit_others_posts
[delete_posts] => delete_posts
[publish_posts] => publish_posts
[read_private_posts] => read_private_posts
[read] => read
[delete_private_posts] => delete_private_posts
[delete_published_posts] => delete_published_posts
[delete_others_posts] => delete_others_posts
[edit_private_posts] => edit_private_posts
[edit_published_posts] => edit_published_posts
[create_posts] => edit_posts
)
[rewrite] => Array
(
[slug] => cpt2
[with_front] => 1
[pages] => 1
[feeds] => 1
[ep_mask] => 1
)
[show_in_rest] =>
[rest_base] =>
[rest_namespace] =>
[rest_controller_class] =>
[rest_controller] =>
)
|
| 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') |
|
| get_query_var('category_name') |
|
| get_the_category() |
Array
(
)
|
| 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/archive.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'] |
/cpt2/ |
| $_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'] |
1736 |
| $_SERVER['REMOTE_HOST'] |
|
| $_SERVER['HTTP_HOST'] |
wp.2nd-half.jp |
| $_SERVER['HTTP_REFERER'] |
https://wp.2nd-half.jp/cpt2 |
| $_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'] |
1762587845 |
| $_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'] |
|
Copyright 2019-2025 920. All Rights Reserved.