私が使用してループの外からのWordpressの著者のURLを取得していますこの:この形式では、著者のURLを提供することにより、正常に動作しバディオーバーライド著者のURL
<?php
get_author_posts_url($author_id, $author_nicename);
?>
-
mysitename.com/author/john-james。バディが有効になっている場合
はしかし、
mysitename.com/members/john-james
に、この同じURLの変更が起きてからこれを防ぐために、そこに方法は何ですか?
$this->author_structure = $this->front . $this->author_base . '/%author%';
WP_Rewrite
クラスを使用すると、値を変更できて、このフィルタを持っています:
apply_filters('author_rewrite_rules', array $author_rewrite)
All this is info is from the WP Codex.