Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正如标题所说,我正在尝试在我的主页上设置一个按钮,该按钮会自动使用特定类别中最后一篇博客文章的链接更新链接
您需要编写短代码(例如在子主题functions.php 中或制作一个插件),这将生成此按钮的HTML 输出,获取最后发布的网址并将其添加到按钮。然后你可以在任何你需要的地方使用类似 [last_post_button] 的东西。