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.
我将帖子分配给作者。如何使用作者 ID 获取帖子信息?
wordpress有没有可能?
你的观点不正确。特定作者有超过 1 个帖子。因此,通过提供作者 ID,您将不会获得特定帖子的信息。那不实用。
而不是通过提供作者的 ID,您可以列出该作者的所有帖子。为此,请使用以下代码:
<?php the_author_posts_link(); ?>
干杯!!!