src/two/magictag.php
protected function author_traversal( $field, $post ) {
		$parts = explode( '.', $field );
		$author = get_user_by( 'id', $post->post_author );
		
		$parts = explode( '.', $field );
		$author = get_user_by( 'id', $post->post_author );

		if( is_object( $author ) && isset( $parts[1] ) && 'posts_url' == $parts[1] ) {
			$link = get_author_posts_url( $author->ID );
			return $link;
		}

		if( is_object( $author ) && isset( $parts[1] ) && isset( $author->$parts[1] ) ) {
			return $author->$parts[1];
		}

	}
protected function author_traversal( $field, $post ) {
		$parts = explode( '.', $field );
		$author = get_user_by( 'id', $post->post_author );
		
		$parts = explode( '.', $field );
		$author = get_user_by( 'id', $post->post_author );

		if( is_object( $author ) && isset( $parts[1] ) && 'posts_url' == $parts[1] ) {
			$link = get_author_posts_url( $author->ID );
			return $link;
		}

		if( is_object( $author ) && isset( $parts[1] ) && isset( $author->$parts[1] ) ) {
			return $author->$parts[1];
		}

	}
protected function author_traversal ( $ field , $ post ) { $ parts = explode ( '.' , $ field ) ; $ author = get_user_by ( 'id' , $ post -> post_author ) ; $ parts = explode ( '.' , $ field ) ; $ author = get_user_by ( 'id' , $ post -> post_author ) ; if ( is_object ( $ author ) && isset ( $ parts [ 1 ] ) && 'posts_url' == $ parts [ 1 ] ) { $ link = get_author_posts_url ( $ author -> ID ) ; return $ link ; } if ( is_object ( $ author ) && isset ( $ parts [ 1 ] ) && isset ( $ author -> $ parts [ 1 ] ) ) { return $ author -> $ parts [ 1 ] ; } }
Handle author.field traversals

@since 2.0.0

@param string $field Field
@param \WP_Post $post Current post

@return mixed
Handle author . field traversals