Skip to:

Turning profile.php into a blog (sort of)

  • deeperstillwatersrun


    I’d like to change the profile page to look more like a blog, so I want to have the user’s info on the left and the topics that they’ve started listed down the right complete with text and a link to the topic to read the comments (replies). Right now I’m stuck on how to show the text of the topic post. Here’s what I’ve got so far:

    <?php foreach ($threads as $topic) : ?>

    <div class="post">

    <h2 class="posttitle">

    <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a>


    <p class="postmeta"><?php printf(__('posted %s ago'), get_topic_start_time()); ?>

    <div class="the_content">

    <?php post_text(); ?>



    <?php endforeach; ?>

    but post_text() just returns the text of the first topic for all the topics, instead of each topic showing the text that it’s supposed to.

    Thanks for any help…

    (by topic, I mean the first post of a thread – just so we’re clear)

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar