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.
试图在这里变得棘手,我想显示一个带有作者和摘录的文章列表。我正在使用自定义字段,并希望用户能够在自己的行上列出 URL,仅此而已。
有没有办法根据友好的网址查找未重写的网址?然后通过正则表达式从那里提取文章 ID?
答案是:
url_to_postid('http://wwww.site.com');
https://wordpress.stackexchange.com/questions/117142/get-author-and-excerpt-from-url/117145?noredirect=1#117145