Justin Tadlock (@greenshady)

Forum Replies Created

Viewing 8 replies - 26 through 33 (of 33 total)

  • Justin Tadlock
    Participant

    @greenshady

    That didn’t work either. It doesn’t get the “ID number” or the “username”.


    Justin Tadlock
    Participant

    @greenshady

    Doing that for the permalink didn’t work for me. I’ve tried it several times.

    There are a couple of things I want to do with the “author” as opposed to the “last poster”:

    1) On front-page.php I want to put the topic author’s name under the link to each of the latest discussions.

    Ex:

    Link to topic

    By link to topic author

    2) On the topic pages, I want to put the name of the post, then link to the post author.

    Ex:

    Topic Title

    By link to topic author on Date/Time

    Rest of post……

    This type of setup is already on my forum. I’ve already got the author’s name already set up on the forum. I just need to get the author’s profile link.


    Justin Tadlock
    Participant

    @greenshady

    Okay, I’ve done that. Here’s what I get on both page 1 and page 2.

    $page = 1

    $topic = Object


    Justin Tadlock
    Participant

    @greenshady

    Yeah, I see that apparently the page is acting like it’s still on page 1. The only thing that’s showing up from page 2 is the 16th post.

    How do you debug the “get_page_number” function?


    Justin Tadlock
    Participant

    @greenshady

    Yes, that’s what I’m talking about. The form, which is supposed to be on the page at the end of the posts, disappears.


    Justin Tadlock
    Participant

    @greenshady

    I’ve narrowed it down the exact problem. Well, I don’t know why, but it seems to be the source. In “header.php” I include with php a file called “menu.php.” Inside of “menu.php” I have my “recent entries” from my wordpress blog. When I delete this particular bit of code everything works fine.

    <div class="menu3">

    <h3 class="menuHeader">Recent Reviews</h3>

    <ul class="list">

    <?php $temp_query = $wp_query; ?>

    <?php query_posts('cat=3&showposts=10&order=ABC'); ?>

    <?php while (have_posts()) : the_post(); ?>

    <li>

    <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>

    <br />Review by <?php the_author_posts_link(); ?>

    </li>

    <?php endwhile; ?>

    <?php $wp_query = $temp_query; ?>

    </ul>

    </div> <!-- menu3 -->

    When the post limit exceeds 15, is the only time this seems to be a problem. This runs fine on all the other pages, or when the post limit is 15 or below.


    Justin Tadlock
    Participant

    @greenshady

    I’ve narrowed it down to something in my header.php file in the “my-templates” directory. I’ll look over it for now. I must’ve messed something up.


    Justin Tadlock
    Participant

    @greenshady

    Yes, the 16th post. I just tried it out on another topic. When the 16th post is created, the form disappears.

Viewing 8 replies - 26 through 33 (of 33 total)