Forums

category/author links not loading with default template (7 posts)

  1. wordress
    Member
    Posted 1 year ago #

    I'm new to wordpress, I'm not a web designer so me experience is mostly html and css. (I know what I'm looking but don't know much about starting from scratch) I have a site up for a buddy of mine that wanted a wordpress site (which I thought it would be good practice and a way into wordpress)

    First (pretty soon after I started working on it) I realized that I bit off a little more then I can chew. Could not figure it out for the life of me, then I discovered Artisteer

    I was able to create a simple theme and upload it.

    added a bunch of widgets and plugins.... so far so good

    then I ran into this problem that I can't wrap my head around.... when I click the category/author links the page that loads doesn't load with the default template?

    this the page
    and these are the category and author pages

    I've tried other post on these forums but the advice (link) that was given leaves me more confused and frustrated...

    I feel that the problem lies in the category/author php files. but since I don't know or any php, I'm kinda at a dead end... can somebody help

    category.php code is this

    [Code moderated as per the Forum Rules. Please use the pastebin]

  2. wordress
    Member
    Posted 1 year ago #

    oops I didn't realize that the code would be moderated.... let me try again

    category
    --------------------

    <?php
    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>
    <?php
    $category_description = category_description();
    if ( ! empty( $category_description ) )
    echo '<div class="archive-meta">' . $category_description . '</div>';

    get_template_part( 'loop', 'category' );
    ?>

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

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

    author
    -----------------
    <?php

    get_header(); ?>

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

    <?php
    if ( have_posts() )
    the_post();
    ?>

    <h1 class="page-title author"><?php printf( __( 'Author Archives: %s', 'twentyten' ), "<span class='vcard'>" . get_the_author() . "</span>" ); ?></h1>

    <?php

    if ( get_the_author_meta( 'description' ) ) : ?>
    <div id="entry-author-info">
    <div id="author-avatar">
    <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
    </div><!-- #author-avatar -->
    <div id="author-description">
    <h2><?php printf( __( 'About %s', 'twentyten' ), get_the_author() ); ?></h2>
    <?php the_author_meta( 'description' ); ?>
    </div><!-- #author-description -->
    </div><!-- #entry-author-info -->
    <?php endif; ?>

    <?php
    rewind_posts();

    get_template_part( 'loop', 'author' );
    ?>
    </div><!-- #content -->
    </div><!-- #container -->

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

  3. wordress
    Member
    Posted 1 year ago #

    will no one help?

  4. 123milliseconds
    Member
    Posted 1 year ago #

    please read that moderated reason and try again

  5. wordress
    Member
    Posted 1 year ago #

    sorry about that, let me try again.

    like before with the other links

    I created the theme using Artisteer

    this is the site with the default template

    and this is the author page and category page

    this is my author.php file
    link

    and category.php file
    link

    sorry for the confusion.

  6. wordress
    Member
    Posted 1 year ago #

    will no one help?

  7. wordress
    Member
    Posted 1 year ago #

    I've tried many different methods of fixing this problem but to no avail.... (since php isn't my my strong suit, at all really)

    I would really appreciate someones help

    thanks in advance

Topic Closed

This topic has been closed to new replies.

About this Topic