Forums

How To Configure WP-SNAP!category.php (6 posts)

  1. funrockerz
    Member
    Posted 1 year ago #

    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

  2. equalmark
    Member
    Posted 1 year ago #

    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/

  3. funrockerz
    Member
    Posted 1 year ago #

    wp-content/themes/yourthemename/

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

  4. equalmark
    Member
    Posted 1 year ago #

    Is there an index.php file?

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

  5. funrockerz
    Member
    Posted 1 year ago #

    lol even i know that..

  6. vibescdn
    Member
    Posted 11 months ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic