Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter dadako

    (@dadako)

    post formats can also be achieved with “single-[cat name].php” docs, which I’m already doing.

    Thread Starter dadako

    (@dadako)

    Investigated further and I don’t think post formats can cover it.

    Post formats is basically the same as categories, I’m trying to make the same post (same data) show differently in different stand alone single views using different links.

    Thread Starter dadako

    (@dadako)

    Thanks bcworkz, I’ll look into post formats, sounds like exactly what I am looking for!

    Thread Starter dadako

    (@dadako)

    OK I can see I’m not grabbing the attention of the wordpress gurus here ?? so I’ll explain a little more clearly:
    (although you may have to look at my site to see what I’m on about!)

    In the sidebars, you can list recent posts from categories like this:


    <...ul...>
    <?php
    $myposts = get_posts('numberposts=10&offset=0&category=5');
    foreach($myposts as $post) :
    ?>
    <...li...><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><.../li...>
    <?php endforeach; ?>
    <.../ul...>

    Thats really useful for your main index.

    I have made a custom Categories page called “category.php” that is used automatically by wordpress when you click on any of the categories listed on my sidebar navigation ( [url]www.dadako.com[/url] )

    In this custom categories page, I have set a bit of code to show you what cat you are in:

    <?php $this_category = get_category($cat); ?><?php echo $this_category->cat_name; ?>

    Underneath that, I wanted to have a list of the last 30 or so posts in that category, although fictional, take a look at the following code to see how I “think” it should be done:


    <...ul...>
    <?php
    $myposts = get_posts('numberposts=30&offset=0&category=$this_category');
    foreach($myposts as $post) :
    ?>
    <...li...><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><.../li...>
    <?php endforeach; ?>
    <.../ul...>

    Obviously it doesn’t work and I’m not quite sure of the correct syntax. Also at some point I will try to list thumbnails too, not just titles.

    any help would be greatly appreciated.

    Thread Starter dadako

    (@dadako)

    anyone want a stab at this??

    yes change your page heading to utf-8 encoding, this should make the japanese characters appear OK. (check the code on my homepage if you need an example)

    Thread Starter dadako

    (@dadako)

    anyone?

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