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

    (@dcooney)

    Hi pixelsophie,
    In order to use this on a category archive you need to replace your code in category.php or archive.php with the category example.
    https://gist.github.com/dcooney/ae4caec3f9061dd47627

    Cheers,

    Thread Starter pixelsophie

    (@pixelsophie)

    Hi,
    thanks. I dont know what to do. The full code lines. It doesnt work wih your lines.
    Iam sorry but i dont know how to use you plugin. I dont find any help for me or my language is it.
    Thanks for trying to helping me.

    edit: sorry i should use the lines within my code. But it doenst look beantifull. It doesnt fit in my theme. Thanks for helping me. It is little bit to hard for me.

    Plugin Author Darren Cooney

    (@dcooney)

    No problem,
    But essentially my plugin replaces everything in category.php except for the title and your theme grid.

    All you do is drop the shortcode into your template file.

    Its something like this:

    <?php get_header(); ?>
    <h1>Category Title</h1>
    $cat = get_category( get_query_var( 'cat' ) );
    $category = $cat->slug;
    echo do_shortcode('[ajax_load_more category="'.$category.'"]');
    <?php get_footer(); ?>
    Thread Starter pixelsophie

    (@pixelsophie)

    Thanks a lot.
    It doesnt work for me it is to complicatet in my theme.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Use Plugin for category.php’ is closed to new replies.