从“摘录”字段内容中批量获取自动发布的“字幕”

问题描述 投票:0回答:1

我有一个博客,拥有10.000多个帖子。我需要为所有帖子生成一个subtitle,并从每个帖子的excerpt字段中的内容中获取该文本。作为图像示例,我包括在这篇文章中。

get subtitle from excerpt我想寻求帮助以找到理想的functions.php代码。

my_subtitle($ article)

get_the_excerpt()

或者也许有人可以指导我使用phpmyadmin SQL批量更新我现有帖子中的这些字段。

提前感谢。

wordpress function phpmyadmin subtitle
1个回答
0
投票

您可以通过get_postsforeach循环“强行使用它:

© www.soinside.com 2019 - 2024. All rights reserved.