+ Reply to Thread
Results 1 to 5 of 5

Thread: appearance of category-list

  1. #1

    Default appearance of category-list

    hi there,

    im trying to get the category list at the end of a single post to appear just like the tag list, i.e. with the same separators. so i copied it from the tag- to the category command, but somehow it doesn't work, instead of dots i see nothing.
    that's the code:
    <strong>Schlagwort<span class="flickr_pink">e</span>:</strong> <?php the_tags('&nbsp; ',' &middot; ') ?>
    <p class="tagged"><strong>Kategorie<span class="flickr_pink">n</span>:</strong> <?php the_category('&nbsp; ',' &middot; ') ?>

    anybody a idea, what went wrong?
    thx,
    matthias

  2. #2
    Join Date
    Feb 2009
    Posts
    605

    Default

    Can you show me where you put the code? Make sure it's before the end of the loop, i.e., before

    PHP Code:
    <?php endwhile; ?>
    Helpful links for the_tags() and the_category():

    http://codex.wordpress.org/Template_Tags/the_tags
    http://codex.wordpress.org/Template_Tags/the_category

    Try using other separators like a comma and a pipe '|', etc., and let me know if it still isn't showing up.




    Quote Originally Posted by merderein View Post
    hi there,

    im trying to get the category list at the end of a single post to appear just like the tag list, i.e. with the same separators. so i copied it from the tag- to the category command, but somehow it doesn't work, instead of dots i see nothing.
    that's the code:
    <strong>Schlagwort<span class="flickr_pink">e</span>:</strong> <?php the_tags('&nbsp; ',' &middot; ') ?>
    <p class="tagged"><strong>Kategorie<span class="flickr_pink">n</span>:</strong> <?php the_category('&nbsp; ',' &middot; ') ?>

    anybody a idea, what went wrong?
    thx,
    matthias

  3. #3

    Default

    Quote Originally Posted by admin View Post
    Can you show me where you put the code?
    i didn't change the place of the code, just replaced the argument of the category-tag.

    Quote Originally Posted by admin View Post
    Try using other separators like a comma and a pipe '|', etc., and let me know if it still isn't showing up.
    i tried that again and found a way: if i write just "(' &middot; ')" instead of (your) "('&nbsp; ',' &middot; ')", it works just fine. but i still don't understand, why - to me "('&nbsp; ',' &middot; ')" seems like totally valuable code ..

  4. #4
    Join Date
    Feb 2009
    Posts
    605

    Default

    Did you see the formatting for the parameters of those template tags? The Codex pages explain it all, i.e.:

    PHP Code:
     <?php the_tags$before$separator$after ); ?>
    First '...' appears before the text, next is the separator text, and third '...' string appears after.




    Quote Originally Posted by merderein View Post
    i didn't change the place of the code, just replaced the argument of the category-tag.


    i tried that again and found a way: if i write just "(' &middot; ')" instead of (your) "('&nbsp; ',' &middot; ')", it works just fine. but i still don't understand, why - to me "('&nbsp; ',' &middot; ')" seems like totally valuable code ..

  5. #5

    Default

    Quote Originally Posted by admin View Post
    Did you see the formatting for the parameters of those template tags? The Codex pages explain it all, i.e.:

    PHP Code:
     <?php the_tags$before$separator$after ); ?>
    First '...' appears before the text, next is the separator text, and third '...' string appears after.
    thx for your patience, now i got it ... for some reason i was pretty sure that the category-tag had the same syntax as the tags-tag - that threw me of.

+ Reply to Thread

Similar Threads

  1. Different header image per category. How?
    By ungefragt in forum Community Exchange
    Replies: 6
    Last Post: 04-14-2010, 08:18 AM
  2. Category not showing
    By AineNi in forum Bugs & Fixes
    Replies: 2
    Last Post: 02-08-2010, 09:12 PM
  3. Category variable
    By junedodge in forum Cutline Mods
    Replies: 6
    Last Post: 12-21-2009, 04:55 AM
  4. Category page
    By pau.barrena in forum Posts, Pages, Comments
    Replies: 2
    Last Post: 10-19-2009, 04:45 PM
  5. Post category display for Cutline 2.2?
    By wilfrid in forum Bugs & Fixes
    Replies: 2
    Last Post: 07-30-2009, 04:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts