Unable To Get Working in Category.php
-
Hi,
Firstly great plugin! I can get it working fine in my theme when I use the shortcode generator but whenever I try to the template code used in your example I just see a faded out “Older Posts” button? Just to clarify I’m supposed to replace this code in my category template:
<?php query_posts( ‘post_type=ww1-profiles’); ?>
<?php get_template_part( ‘loop’, ‘category-ww1-profiles’ ); ?>With this:
<?php
$cat = get_category( get_query_var( ‘cat’ ) );
$category = $cat->slug;
echo do_shortcode(‘[ajax_load_more category=”‘.$category.'”]’);
?>I’ve tried keeping the custom post type query as well but that doesn’t seem to make any difference.
One final question, is it possible to change the “Older Posts” button text to something else as it’s not very relevant to my custom posts?
Thanks,
James
- The topic ‘Unable To Get Working in Category.php’ is closed to new replies.