Amazon商品リンクショートコードの実装方法 実装するのに必要な主な手順はこちら。 functions.phpにコードを追記 style.cssにスタイルを追記 各種IDを取得し入力 基本的にコードを2回ほどコピペしてあとは、APIの認証IDや、Amazon、楽天、Yahoo!ショッピングのIDを書き加えるだけです。 functions.phpにコードを追記 まずはテーマ(子テーマ)のfunctions.phpに追記する形で以下のコードを書き加えます。 //外部ファイルの取得 if ( !function_exists( 'get_http_content' ) ): function get_http_content($url){ try { $ch = curl_init(); curl_setopt_array($ch, [ CURLOPT_URL => $url, CURLOPT
![コピペで実装!WordPressでAmazon PA-APIを利用して商品リンクを表示するカスタマイズ方法](https://cdn-ak-scissors.b.st-hatena.com/image/square/c4e5f9409bdd871f03bf3326c9fa8ae9a915dc37/height=288;version=1;width=512/https%3A%2F%2Fnelog.jp%2Fwp-content%2Fuploads%2F2018%2F08%2F2d57eda4a83b8e3c149360205741fe6b.png)