静的htmlをwordpress化する方法
静的htmlをwordpress化する方法※編集中
固定ページ
phpファイルの記載内容
<?php get_header(); ?>
<!--header-->
~中略、ここにhtmlを記載する~
<?php get_footer(); ?>
ドメイン直下
wp-content/themes/使用しているテーマ/index.php
ショートコードを埋め込みたい
■元ファイル(固定ページや投稿)
[ショートコード]
■方法
○○.phpに以下記載
<?php echo do_shortcode( '[ショートコード]' ); ?>
Author And Source
この問題について(静的htmlをwordpress化する方法), 我々は、より多くの情報をここで見つけました https://qiita.com/higurit/items/d9dddfa4f34e53f47e1e著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .