• How To Configure WP-SNAP!

    Click on the link to the right to download the WP-SNAP! WordPress Plugin, extract it and upload it to your WordPress Plugins folder on your site.
    Activate the Plugin from the WordPress Administration Plugins tab.
    Edit the category templates your Theme uses, such as category.php, and add the following code above the start of the WordPress Loop:
    <?php if (function_exists(‘wp_snap’)) { echo wp_snap(); } ?>

    what does this mean category.php ..where it is kept please elaborate

Viewing 5 replies - 1 through 5 (of 5 total)
  • category.php is one of the files that make up your theme which is being used on your WordPress site.

    The files are located in the following location from the root of your WordPress installation:

    wp-content/themes/yourthemename/

    Thread Starter funrockerz

    (@funrockerz)

    wp-content/themes/yourthemename/

    yes i searched it here first…but there is nothing like category.php…

    Is there an index.php file?

    Also you need to replace ‘yourthemename’ with the name of the folder that your theme is using.

    Thread Starter funrockerz

    (@funrockerz)

    lol even i know that..

    vibescdn

    (@vibescdn)

    I tried reading everywhere for this.

    I believe I did set up WP-Snap correctly. However when I click on alphabet letters, it doesnt display posts correctly. It always show the same posts in order beginning at A and ends at 10th post. Below is an “older post” link. When I click for example “U” it doesnt show posts starting with “U”. I am confused!!!

    Official page said “add the following code above the start of the WordPress Loop” in category.php

    Other website said within the wordpress loop (http://lorelle.wordpress.com/2006/09/09/wp-snap-wordpress-plugin-alphabetized-index-listing-of-posts-for-category-pages/)

    I put it like this (look for BOLD WP-Snap comment):

    <?php
    /**
    * The template for displaying Category Archive pages.
    *
    * @package WordPress
    * @subpackage Twenty_Ten
    * @since Twenty Ten 1.0
    */

    get_header(); ?>

    <div id=”container”>
    <div id=”content” role=”main”>

    <h1 class=”page-title”><?php
    printf( __( ‘Category Archives: %s’, ‘twentyten’ ), ‘<span>’ . single_cat_title( ”, false ) . ‘</span>’ );
    ?></h1>

    <!– WP-Snap plug-in –>

    <?php if (function_exists(‘wp_snap’)) { echo wp_snap(); } ?>

    <!– End WP-Snap plugin –>
    <?php
    $category_description = category_description();
    if ( ! empty( $category_description ) )
    echo ‘<div class=”archive-meta”>’ . $category_description . ‘</div>’;

    /* Run the loop for the category page to output the posts.
    * If you want to overload this in a child theme then include a file
    * called loop-category.php and that will be used instead.
    */
    get_template_part( ‘loop’, ‘category’ );
    ?>

    </div><!– #content –>
    </div><!– #container –>

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Did I put it in the right place? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘How To Configure WP-SNAP!category.php’ is closed to new replies.