我使用了business directory plugin,它添加了listing部分。添加列表页面,我尝试在列表页面内添加映射。地图似乎出现在wordpress目录仪表板中,但它并没有出现在网站中。我知道这个插件有谷歌地图模块,但是有没有办法不使用谷歌地图插件就把谷歌地图放进去呢?
<p style="text-align: center;"><img class="alignnone size-medium wp-image-291" src="https://harta-net.s3.amazonaws.com/uploads/2018/05/f84590ac-b53e-432d-9137-2241c7075f2d_tb-300x147.jpeg" alt="" width="300" height="147" /></p>
<iframe style="border: 0;" src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3984.3164489624587!2d101.61260631430928!3d3.0093049978084196!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x31cdb36044fe6151%3A0x9c6f6535d01735ff!2sMasteron+Grand+Pavilion!5e0!3m2!1sen!2sin!4v1526629036980" width="600" height="450" frameborder="0" allowfullscreen="allowfullscreen"></iframe>directory dashboard image。Here is the link of my website
编辑:添加代码和网站链接
编辑2:尝试使用其他google地图插件添加,但仍然失败
编辑3:我发现这个问题是因为我需要为google map inside业务目录表单创建一个部分,以使其出现。另外一个问题,有没有可能只输入地址并自动将其从地址更改为谷歌地图?
发布于 2018-05-18 15:39:46
您可以尝试将其添加到任何页面、帖子或内容/文本框的部分
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3984.3164489624587!2d101.61260631430928!3d3.0093049978084196!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x31cdb36044fe6151%3A0x9c6f6535d01735ff!2sMasteron+Grand+Pavilion!5e0!3m2!1sen!2sin!4v1526629036980" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>发布于 2018-05-24 20:41:22
您好,您添加的api密钥谷歌地图为特定的现场网址?如果没有,那么你必须创建,之后你必须在你的iframe中提到
https://stackoverflow.com/questions/50406105
复制相似问题