deeltje
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] No SLIDESHOW after upgrading to 1.1.0 :-(Got it working now, needed to let the program search for the .swf file
Forum: Themes and Templates
In reply to: Auto-detect CategoryIt doesnt work, it still gets me all news posts of all categories combined, but that kinda makes sense, it shouldn’t matter if its in the header of single or category.php right?
I don’t want to make a catergory-1.php category-2.php etc. i’m really trying to minimalize the code.
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] Slideshow doesnt work with last uptdateOk this is weird, you need to put that .swf in the wp-content/uploads folder, BUT you HAVE to let the program itself search for it, so it comes up the the complete http:// url, if you insert ‘wp-content/uploads’ it wont work, allthough it says it detected the .swf perfectly…. FINALY got it to work
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] No SLIDESHOW after upgrading to 1.1.0 :-(I’ve tried everything i’ve read above, but I still get a blank square on the slideshow widget and on the slideshow in the main page….
my pictures are in /wp-content/gallery at the moment.
Forum: Themes and Templates
In reply to: Auto-detect Category<?php $cat = get_query_var('cat'); $args=array( 'cat__in' => array($cat), 'showposts'=> 6 ); $my_query = new WP_Query($args); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?> <div class="contentslider_menu"> <div class="contentslider_menubalk_streep"> <div class="contentslider_menubalk"> <ul><li> <a href="<?php the_permalink(); ?>" class="toc"> <span class="knop_titel"><?php the_title(); ?></span> <span class="knop_datum"><?php the_time('j F Y H:i'); ?></span> <span class="knop_category"><?php foreach((get_the_category()) as $category) {echo $category->cat_name . ' ';} ?></span> </a> </li></ul> </div></div></div> <?php endwhile; ?>I’m using this now, but it still gives me the 6 newest posts from all categories. I’m using this code in the header.php because I want to minimize my code, I wanted it to work on category.php and single.php
Forum: Themes and Templates
In reply to: Auto-detect CategoryThank you for the educational bit, but I have to admit that I know nothing or very little about implementing PHP code.
<?php $my_query = new WP_Query('showposts=6'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?>Where in this bit should I try to implement
$cat = get_query_var('cat');?
Forum: Themes and Templates
In reply to: Category Name in -text- form@kapiljain.in
Perfect, thanks! And for the category.php I used <?php single_cat_title() ?>, works like a charm! Thanks!
Forum: Themes and Templates
In reply to: Auto-detect CategoryIsn’t there a way to do this with, excluding category if category = 1 …. or something like that.
I really don’t like to use to many plugins for these kinda things.
Forum: Themes and Templates
In reply to: Category Name in -text- form<?php $my_query = new WP_Query('showposts=6'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?> <div id="contentslider_menu"> <div class="contentslider_menubalk_streep"> <div class="contentslider_menubalk"> <ul><li> <a href="<?php the_permalink(); ?>" class="toc"> <div class="knop_titel"><p class="wit"><?php the_title(); ?> </div> <div class="knop_datum"><p class="wit"><?php the_title(); ?> </div> <div class="knop_category"><p class="wit">Category </div> </a> </li></ul> </div></div></div> <?php endwhile; ?>I’m using above code, and things like title etc. are working perfect. The problem is that withing this code I only need the -echo- -text- output, because everything is allready in a
<a href=""></a>.I’ve tried your solution t31os_, but that still gives me a link-output.
Isn’t there a way to just -echo- -text- the Category Description?