• Droiddoll

    (@droiddoll)


    I want to do a loop for $user_id for current user so… something like this:
    <?php if (have_posts()) : while (have_posts()) : the_post($user_id); ?>
    I know that this is wrong,
    I’m doing a user menu and I just want to appear current user’s post
    pleaseeee heeelpppp
    thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • whooami

    (@whooami)

    I’m doing a user menu and I just want to appear current user’s post

    then you capture their user_id using the necessary template tags and you display an author template.

    Thread Starter Droiddoll

    (@droiddoll)

    thanks for replay whooami, i am already using author.php for the space users, I have to do it with another template than author.php

    thanks in advance

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

The topic ‘Do a loop for $user_id’ is closed to new replies.