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 をリストできるようにしたいと考えています。それだけです。
フレンドリーな URL に基づいて、書き換えられていない 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