{"id":708,"date":"2019-10-30T10:42:23","date_gmt":"2019-10-30T01:42:23","guid":{"rendered":"https:\/\/www.macvox.jp\/?p=708"},"modified":"2019-10-30T10:44:13","modified_gmt":"2019-10-30T01:44:13","slug":"%e3%83%a1%e3%83%8b%e3%83%a5%e3%83%bc%e3%81%ae%e3%82%b7%e3%83%a7%e3%83%bc%e3%83%88%e3%82%b3%e3%83%bc%e3%83%89","status":"publish","type":"post","link":"https:\/\/www.macvox.jp\/index.php\/archives\/708","title":{"rendered":"\u30e1\u30cb\u30e5\u30fc\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9"},"content":{"rendered":"

\u30e1\u30cb\u30e5\u30fc\u3092\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3067\u8868\u793a\u3055\u305b\u305f\u304f\u306a\u3063\u305f\u306e\u3067\u3001
\n\u3044\u3064\u3082\u306e\u5148\u751f\u306b\u304a\u5c0b\u306d\u7533\u3059\u3002<\/p>\n

https:\/\/wordpress.stackexchange.com\/questions\/292877\/shortcode-to-insert-menu-in-page-body<\/p>\n

\u3053\u3061\u3089\u306e\u30b5\u30a4\u30c8\u69d8\u306b\u3066\u7d39\u4ecb\u3055\u308c\u3066\u3044\u305f\u3002
\n\u30c6\u30fc\u30de\u306efunction.php\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8ffd\u8a18\u3002<\/p>\n

\n function print_menu_shortcode($atts, $content = null) {
\nextract(shortcode_atts(array( ‘name’ => null, ‘class’ => null ), $atts));
\nreturn wp_nav_menu( array( ‘menu’ => $name, ‘menu_class’ => ‘myclass’, ‘echo’ => false ) );
\n}<\/p>\n

add_shortcode(‘menu’, ‘print_menu_shortcode’);\n<\/p><\/blockquote>\n

\u4ee5\u4e0b\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3092\u30e1\u30cb\u30e5\u30fc\u3092\u8868\u793a\u3055\u305b\u305f\u3044\u7b87\u6240\u306b\u633f\u5165\u3002<\/p>\n

\n[menu name=”\u30e1\u30cb\u30e5\u30fc\u540d\uff08\u4f8b\u3000\u30e1\u30a4\u30f3\u30e1\u30cb\u30e5\u30fc\uff09”]\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u30e1\u30cb\u30e5\u30fc\u3092\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9\u3067\u8868\u793a\u3055\u305b\u305f\u304f\u306a\u3063\u305f\u306e\u3067\u3001 \u3044\u3064\u3082\u306e\u5148\u751f\u306b\u304a\u5c0b\u306d\u7533\u3059\u3002 https:\/\/wordpress.stackexchange.com\/questions\/292877\/shortcode-to-inse … \u7d9a\u304d\u3092\u8aad\u3080 “\u30e1\u30cb\u30e5\u30fc\u306e\u30b7\u30e7\u30fc\u30c8\u30b3\u30fc\u30c9”<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.macvox.jp\/index.php\/wp-json\/wp\/v2\/posts\/708"}],"collection":[{"href":"https:\/\/www.macvox.jp\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.macvox.jp\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.macvox.jp\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.macvox.jp\/index.php\/wp-json\/wp\/v2\/comments?post=708"}],"version-history":[{"count":3,"href":"https:\/\/www.macvox.jp\/index.php\/wp-json\/wp\/v2\/posts\/708\/revisions"}],"predecessor-version":[{"id":711,"href":"https:\/\/www.macvox.jp\/index.php\/wp-json\/wp\/v2\/posts\/708\/revisions\/711"}],"wp:attachment":[{"href":"https:\/\/www.macvox.jp\/index.php\/wp-json\/wp\/v2\/media?parent=708"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.macvox.jp\/index.php\/wp-json\/wp\/v2\/categories?post=708"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.macvox.jp\/index.php\/wp-json\/wp\/v2\/tags?post=708"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}