WordPress.org

Ready to get started?Download WordPress

Forums

Changing Sidebar? (15 posts)

  1. bk
    Member
    Posted 8 years ago #

    Is it possible to have "Recent Comments" and "Recent Posts" in the sidebar of Kubrick template? If so, do you need any type of plug-in?

    Thank you in advance for any kind of help. :)

  2. stchatterbox
    Member
    Posted 8 years ago #

    yes, there's one for comment, i think
    http://blog.jodies.de/blog/20041113/
    as for post, i'll try to search that out later. good luck!

  3. James
    Happiness Engineer
    Posted 8 years ago #

  4. Michael Bishop

    Posted 8 years ago #

    The template tag get_posts would suffice for a sidebar item
    http://codex.wordpress.org/Template_Tags/get_posts

  5. bk
    Member
    Posted 8 years ago #

    stchatterbox: It worked! It would be nice if you could post a similar one but with "Recent Posts." This was pretty easy that's why.

    Thank you. :)

  6. moshu
    Member
    Posted 8 years ago #

  7. bk
    Member
    Posted 8 years ago #

    Thanks Moshu. Works fine. :)

  8. bk
    Member
    Posted 8 years ago #

    By the way, how do you display the category you posted your update in? Is there a plug-in?

    This one is off-topic but when you go to my comments page, the shoutbox and "Misc" are not on the sidebar for some reason?
    Check here: http://xeenat.com/wordpress

    Thanks. :)

  9. bk
    Member
    Posted 8 years ago #

    I can't edit my previous post but in my first question, I want to put the "Categories" under the "Date" of the update.

    Thanks. :)

  10. moshu
    Member
    Posted 8 years ago #

    To display the category of a post use the_category template tag:
    http://codex.wordpress.org/Template_Tags/the_category
    something like Posted in <?php the_category(', ') ?>

  11. bk
    Member
    Posted 8 years ago #

    Thanks Moshu. Works perfect!

    Last question, hopefully. :)
    When you go to the comments page, you can't see the "Misc" menu on the sidebar. Same with if you click on the category name, it doesn't display the "Misc" menu on the sidebar. How to fix that?

  12. moshu
    Member
    Posted 8 years ago #

    Now that's a little bit more complicated question. Since your theme is a modification of the Default (Kubrick) in its sidebar.php template there are a lot of "if statements" - meaning it has code lines that tell WP "if we are on archives --> show this and that"; "if we are on another page --> show something else" etc. So it is not something that needs a "fix", since nothing is wrong.
    I don't know exactly what is in your sidebar's code, what has been changed or modified, so it's difficult to guess.
    BTW, correctly this is the single post view (using the single.php template) - there is no "comments page".

  13. bk
    Member
    Posted 8 years ago #

    Oh, alright. Thanks for clarifying. I guess I'll leave it like this then.
    Once again, thanks a lot for your help. :)

  14. Lorelle
    Member
    Posted 8 years ago #

  15. stchatterbox
    Member
    Posted 8 years ago #

    and also, forgotten to ask a question, is there a recent forum post plugin?
    if i power punBB forum in my blog? thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.