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

AJAX and Shortcode with Parameters

programmeradmin1浏览0评论

I'm creating an ajax function which will display a filtered post. I used a shortcode to display the post.

The shortcode has a parameter to filter its display. I have a category and a tag parameter. Now when I type manually the shortcode it's working fine, but when I render it to the Ajax, the output is zero(0).

Here is the code in the footer.php

and in the function.php

I hope this makes sense.

Also, this is the HTML layout.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论