Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter isteelione

    (@isteelione)

    alchymyth

    Now is working last code.

    alchymyth
    Thank you very match

    Thread Starter isteelione

    (@isteelione)

    Okej
    Im new in wordpress i dont know even hur to use the code you send me that why i just but the code that why.

    Thread Starter isteelione

    (@isteelione)

    Hi
    I try to use that code in category.php
    is not working

    <?php get_header(); ?>

    <?php // Get Theme Options from Database
    $theme_options = leeway_theme_options();
    ?>

    <div id=”wrap” class=”clearfix”>

    <section id=”content” class=”primary” role=”main”>

    $args = array(‘orderby’ => ‘title’, ‘cat’ => <category id>);
    $query = new WP_Query($args);

    <h2 id=”category-title” class=”archive-title”>
    <?php printf(__(‘Category Archives: %s’, ‘leeway’), ‘<span>’ . single_cat_title( ”, false ) . ‘</span>’); ?>
    </h2>

    <?php if (isset($theme_album)) : $theme_album->ta_albumFormat(); else : ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    get_template_part( ‘content’, $theme_options[‘posts_length’] );

    <?php endwhile; else : ?>
    <p><?php _e( ‘Sorry, no posts matched your criteria.’ ); ?></p>
    <?php endif; ?>
    <?php endif; ?>

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