• Hello,

    I’m trying to place the call for…

    <?php get_sidebar(); ?>

    … before the post on single.php, when it is called bellow it there is no problem when it is called above it, the comments template doesn’t show up and multiple posts are outputted.

    I’m using the Cutline theme.

    Any ideas?

Viewing 8 replies - 1 through 8 (of 8 total)
  • And why would you want to do that if you have no clue about web design?

    Thread Starter emil2k

    (@emil2k)

    And why would you want to do that if you have no clue about web design?

    I have a clue about web design, it’s for seo reasons.

    Putting the sidebar before the content for seo? Gimme a break…

    Thread Starter emil2k

    (@emil2k)

    I have my reasons, do you have an idea?

    Yes, I have an idea because I can count the divs and can figure out where they start and where they end.
    You can move the sidebar “above” the content in the code, although that means it would display on the left. Not above. (just for the sake of clarification!)

    In the same time you will have to alter the stylesheet, too to make it to look decent… but that’s too much to be done in a forum post.

    Thread Starter emil2k

    (@emil2k)

    Yes, I have an idea because I can count the divs and can figure out where they start and where they end.
    You can move the sidebar “above” the content in the code, although that means it would display on the left. Not above. (just for the sake of clarification!)

    In the same time you will have to alter the stylesheet, too to make it to look decent… but that’s too much to be done in a forum post.

    I know CSS/XHTML this is not about that, but I don’t think you understand the problem.

    When you place the <?php get_sidebar(); ?> call above the part that outputs the post on single.php the comment template is not outputted and instead of just one post being outputted, multiple posts are outputted.

    Do you understand?

    Because the sidebar has an additional Loop (recent posts) in it that over-rides the main Loop, if coming first. If you know code why don’t you look at it?

    Thread Starter emil2k

    (@emil2k)

    Because the sidebar has an additional Loop (recent posts) in it that over-rides the main Loop, if coming first. If you know code why don’t you look at it?

    I’m sure you have been told this before, but you are an absolutely a**hole.

    Thanks for the tip though.

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

The topic ‘Sidebar above Post on Single.php Troubleshooting?’ is closed to new replies.