• Resolved James

    (@jmdesignsolutions)


    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

    https://www.ads-software.com/plugins/ajax-load-more/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    You can change the button text in the shortcode builder.

    Your shortcode looks fine… Do you want to share a link?

    Thread Starter James

    (@jmdesignsolutions)

    Thanks for the quick reply, I think I’ve just worked it out.

    I was just using your default code and not substituting it with my shortcode, did that and works fine now!

    Thanks.

    James

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unable To Get Working in Category.php’ is closed to new replies.