Forum Replies Created

Viewing 9 replies - 31 through 39 (of 39 total)
  • deeltje

    (@deeltje)

    Got it working now, needed to let the program search for the .swf file

    Thread Starter deeltje

    (@deeltje)

    @michaelh:

    It 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.

    deeltje

    (@deeltje)

    Ok 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

    deeltje

    (@deeltje)

    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.

    Thread Starter deeltje

    (@deeltje)

    <?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

    Thread Starter deeltje

    (@deeltje)

    @michaelh:

    Thank 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');

    ?

    Thread Starter deeltje

    (@deeltje)

    @kapiljain.in

    Perfect, thanks! And for the category.php I used <?php single_cat_title() ?>, works like a charm! Thanks!

    Thread Starter deeltje

    (@deeltje)

    Isn’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.

    Thread Starter deeltje

    (@deeltje)

    <?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?

Viewing 9 replies - 31 through 39 (of 39 total)