Nothing Loads But Show More Button
-
Hi,
We suddenly have an issues where the category posts on our category page are no longer being loaded. It was working previously, however it has stopped after some minor header.php mods.
It appears to not be able to pull the posts from the DB.
here is the shortcode:<?php echo do_shortcode('[ajax_load_more post_type="post" category="'.$current_cat.'" repeater="default" posts_per_page="15" scroll="false" transition="fade" button_label="'.__('View More Articles','twentyfourteen').'" ]');?>
The declaration of $current_cat:
if (is_category( )) { $cat = get_query_var('cat'); $yourcat = get_category ($cat); $current_cat = $yourcat->slug; }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Nothing Loads But Show More Button’ is closed to new replies.