Support » Plugins » Hacks » Author page 2 doesn’t work – 404 Error

Viewing 2 replies - 1 through 2 (of 2 total)
  • Have you tried flushing your permalinks? Go to Settings > Permalinks and click the Save Changes button.

    Moderator bcworkz

    (@bcworkz)

    Instead of ignoring the original query and making your own query, I suggest you instead modify the original query to meet your needs. Apparently this just entails adding “podcast” post type to the “post_type” query var. Then pagination is taken care of for you, you merely need to run the usual WP Loop to display the author’s contributions.

    You modify the original main query with the 'pre_get_posts' action. Once you’ve verified the current query is the main query and is an author query, set the “post_type” value to array('podcast','post',)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Author page 2 doesn’t work – 404 Error’ is closed to new replies.