SHARE
TWEET

Untitled

a guest Sep 16th, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function post_has_archive( $args, $post_type ) {
  2.     if ( 'post' == $post_type ) {
  3.         $args['rewrite'] = true;
  4.         $args['has_archive'] = 'blogs'; // ページ名
  5.     }
  6.     return $args;
  7. }
  8. add_filter( 'register_post_type_args', 'post_has_archive', 10, 2 );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top