最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

how to add shortcode widget at end of main blog page

programmeradmin5浏览0评论

not able to add subscribe to newsletter shortcode at end of blog page. want to add after pagination and before footer. anybody know how to add? the page i am working on Website

not able to add subscribe to newsletter shortcode at end of blog page. want to add after pagination and before footer. anybody know how to add? the page i am working on Website

Share Improve this question edited Jul 20, 2020 at 10:40 fuxia 107k38 gold badges255 silver badges459 bronze badges asked Jul 20, 2020 at 8:35 ShubhamKShubhamK 12 bronze badges 1
  • have you looked at do_shortcode ? it lets you run a shortcode from PHP. You could add it at the end of your main index.php. – mozboz Commented Jul 20, 2020 at 12:22
Add a comment  | 

1 Answer 1

Reset to default 0

I would suggest using do_shortcode as mozboz suggested. But I think that using the single.php file is a better way of doing it. The template you should use will depend on how your theme is structured, but if the element is supposed to always display after a post then editing the main template is the best way to do it.

发布评论

评论列表(0)

  1. 暂无评论