wiredrebels
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [Categories Images] Use for CATEGORY LIST pageResolved!
<?php foreach (get_the_category() as $cat) : ?> <?php $currentcat = get_query_var('cat'); $categories = get_categories('parent=141&hide_empty=0'); if ($categories) { foreach($categories as $term) { echo '<div id="full-page-area" class="post">'; echo '<div id="full-page-video">' . '<a href="' . get_category_link( $term->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>'; echo '<img src="' . $image_text = z_taxonomy_image_url( $term->term_id, TRUE ); echo '" align="right" />'; echo '</a>'.'</div>'; echo '<div id="full-page-sermon-area">'; echo '<div id="full-page-post-title">'; echo '<span id="post-title">' . $title . '<a href="' . get_category_link( $term->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>' . $term->name.'</a>'. '</span>'. '</div>'; echo '<div id="full-page-post">' . category_description( $term->term_id ) . '</div>'; echo '</div>'; echo '</div>'; } } ?> <?php endforeach; ?>
Forum: Plugins
In reply to: [Categories Images] Use for CATEGORY LIST pageHere is my full code. What am I doing wrong in the loop?
<?php include('header.php');?> <?php include('links-ministry.php');?> <div id="full-page" class="content"> <div id="full-page-mini-header"> <img src="<?php if (function_exists('z_taxonomy_image_url')) echo z_taxonomy_image_url(); ?>" align="right" /> <?php single_cat_title( $prefix = '', $display = true ); ?><br /> <?php echo category_description(); ?> </div> <?php if (have_posts()) : ?> <?php $currentcat = get_query_var('cat'); $categories = get_categories('parent=141&hide_empty=0'); if ($categories) { foreach($categories as $term) { echo '<div id="full-page-area" class="post">'; echo '<div id="full-page-video">' . '<a href="' . get_category_link( $term->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>'; echo '<img src="' . $image_text = z_taxonomy_image_url( $taxonomy->z_taxonomy_image_url, TRUE ); echo '" align="right" />'; echo '</a>'.'</div>'; echo '<div id="full-page-sermon-area">'; echo '<div id="full-page-post-title">'; echo '<span id="post-title">' . $title . '<a href="' . get_category_link( $term->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $term->name ) . '" ' . '>' . $term->name.'</a>'. '</span>'. '</div>'; echo '<div id="full-page-post">' . excerpt('20') . '</div>'; echo '</div>'; echo '</div>'; } } ?> <?php wp_reset_query(); ?> <?php endif; ?> </div> <?php get_footer(); ?>
Forum: Plugins
In reply to: [Categories Images] Use for CATEGORY LIST pageit just gets the images for the category page.
no customized images for child pages.
Viewing 3 replies - 1 through 3 (of 3 total)