'Load More" Button Doesn't Work on Series Archive
-
On each archive page (category, search, etc.), I have a “Load More” button which always returns the latest posts site wide on a series archive.
What should I add to the following to make it work with the series on my site:
$archive_type = array(); if ( is_category() ) { $archive_type['cat'] = get_query_var('cat'); } elseif ( is_tag() ) { $archive_type['tag_id'] = get_query_var('tag_id'); } elseif ( is_day() ) { $archive_type['year'] = get_the_time('Y'); $archive_type['monthnum'] = get_the_time('n'); $archive_type['day'] = get_the_time('j'); } elseif ( is_month() ) { $archive_type['year'] = get_the_time('Y'); $archive_type['monthnum'] = get_the_time('n'); } elseif ( is_year() ) { $archive_type['year'] = get_the_time('Y'); } elseif ( is_author() ) { $archive_type['author'] = get_query_var('author'); $archive_type['posts_per_page'] = 10; } elseif ( is_search() ) { $archive_type['s'] = get_search_query(); } ?>
Thanks in advance.
- The topic ‘'Load More" Button Doesn't Work on Series Archive’ is closed to new replies.