1
Googleスプレッドシートからセルテキストをインポートし、フォローコードを使用してWordPressの投稿に挿入します。しかし、私には300以上の価値があります。だから、私はそれが300回以上の長いシートのURLに対処することなくそれをインポートするための簡単な方法かどうか疑問に思っていた。 また、php
にある可能性がありますので、私のpage.phpファイルに挿入しますが、どうすればいいか分かりません。GoogleスプレッドシートからDBをインポート
jQuery.ajax("https://docs.google.com/spreadsheets/d/e/2PACX-1vQhp9yFq8eXagN03gn-mCN3_KPWRc2EIpswDFpHJLflFOG-XU2OMktqj03gxvUBZMAp8gYwWO5Q3MVJ/pub?gid=942917560&single=true&range=c3&output=csv").done(function(txt1){
jQuery("#text1").html(txt1);
});
jQuery.ajax("https://docs.google.com/spreadsheets/d/e/2PACX-1vQhp9yFq8eXagN03gn-mCN3_KPWRc2EIpswDFpHJLflFOG-XU2OMktqj03gxvUBZMAp8gYwWO5Q3MVJ/pub?gid=942917560&single=true&range=c4&output=csv").done(function(txt2){
jQuery("#text2").html(txt2);
});
jQuery.ajax("https://docs.google.com/spreadsheets/d/e/2PACX-1vQhp9yFq8eXagN03gn-mCN3_KPWRc2EIpswDFpHJLflFOG-XU2OMktqj03gxvUBZMAp8gYwWO5Q3MVJ/pub?gid=942917560&single=true&range=c5&output=csv").done(function(txt3){
jQuery("#text3").html(txt3);
});
<div id='text1'></div>
<div id='text2'></div>
<div id='text3'></div>
完璧!どうもありがとう – crloa