MaHeHe
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Antisnews Slider is brokenHi esmi,
I’m sure, it was on WPORG earlier as you can see here: http://wordpress.org/tags/antisnews
The developers site isn’t active anymore: http://www.antisocialmediallc.com/
Thanks for your answer, perhaps I will solve the problem on my own or I have to change the theme 🙁
Martin
Forum: Plugins
In reply to: [Plugin: Widget Logic] widget logic an is_page_template(‘category-1.php’)Hi,
is_category(array(….)) is exactly the tag I’m using now…
As I said, my code is from the Mimbo-theme an it’s based on index.php, that’s why is_home = true is the last.
I didn’t really know, what’s all the stuff in “my” code about, but with your comment a lot of things became clear.So, thanks for your help!
Forum: Plugins
In reply to: [Plugin: Widget Logic] widget logic an is_page_template(‘category-1.php’)Thanks a lot!
Problem resolved!Forum: Plugins
In reply to: [Plugin: Widget Logic] widget logic an is_page_template(‘category-1.php’)Thanks for answering.
Before trying with is_page_template, I tried is_category too.
Unfortunately it didn’t work.My category-5.php, for example, is similiar to and based on Mimbos index.php.
This is my category-5.php. Categories 9-17 are sub-categories of category 5:
Mimbos lead-story is a static page in my category-5.php…<?php get_header(); ?> <div id="content"> <?php /* If this is a category archive */ if (is_category()) { ?> <h2 class="pagetitle"><?php single_cat_title(); ?></h2> <?php } ?> <div class="feature clearfloat" id="lead"> <?php // this is where category-page begins query_posts('showposts=1&page_id=102'); ?> <?php while (have_posts()) : the_post(); ?> <div align="justify"><?php // this is where the content of category-page gets printed the_content(); ?></div> <?php endwhile; ?> </div><!--END CATEGORY-PAGE--> <div id="thirdcol"> <?php // this is where you enter the IDs of which categories you want to display $display_categories = array(9,11,13,15,17); foreach ($display_categories as $category) { ?> <div class="clearfloat"> <?php query_posts("showposts=1&cat=$category"); $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?> <h3><a href="<?php echo get_category_link($category);?>"><?php // this is where the name of each category gets printed single_cat_title(); ?></a></h3> <?php while (have_posts()) : the_post(); ?> <?php // this grabs the image filename $values = get_post_custom_values("Image"); // this checks to see if an image file exists if (isset($values[0])) { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/images/<?php $values = get_post_custom_values("Image"); echo $values[0]; ?>" alt="" /></a> <?php } ?> <a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php // this is where title of the article gets printed the_title(); ?>»</a> <div align="justify"><?php the_excerpt(); ?></div> <?php endwhile; ?> </div> <?php } ?> </div><!--END LEFTCOL--> <div id="rightcol"> <?php // this is where you enter the IDs of which categories you want to display $display_categories = array(10,12,14,16); foreach ($display_categories as $category) { ?> <div class="clearfloat"> <?php query_posts("showposts=1&cat=$category"); $wp_query->is_category = false; $wp_query->is_archive = false; $wp_query->is_home = true; ?> <h3><a href="<?php echo get_category_link($category);?>"><?php // this is where the name of each category gets printed single_cat_title(); ?></a></h3> <?php while (have_posts()) : the_post(); ?> <?php // this grabs the image filename $values = get_post_custom_values("Image"); // this checks to see if an image file exists if (isset($values[0])) { ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/images/<?php $values = get_post_custom_values("Image"); echo $values[0]; ?>" alt="" /></a> <?php } ?> <a href="<?php the_permalink() ?>" rel="bookmark" class="title"><?php // this is where title of the article gets printed the_title(); ?>»</a> <div align="justify"><?php the_excerpt(); ?></div> <?php endwhile; ?> </div> <?php } ?> </div><!--END RIGHTCOL--> </div><!--END CONTENT--> <?php get_sidebar(); ?> <?php get_footer(); ?>So, is there any possibility for me to implement my wishes? (On an easy, newbie-way…)
I wish to display a category-widget for categories 9-11 (with “Extended Categories”) while displaying category-5.php (and category-9.php…).