Support » Plugins » Direct where posts show up on a Page

  • Ok, see if I can explain what I am trying to achieve.

    I have created two different areas on a Page. They are situated beside each other. So let us call them Area Left and Area Right.

    The coding for the two areas is simple css without any use of tables.

    In Area Left I will list the headings of a certain number of post. All of these posts are in the same category. Accordingly, The code used for the list that shows up in area left is the following.

    <li id="Categories">
    			<?php wp_list_cats('sort_column=name'); ?>

    This works well. However I would like the full text of the posts to show up in Area Right when you click on the headings of the posts in Area Left.

    And I just can’t figure out how to do it. It should be simple. I mean, it is the same structure that is used in most themes where you click on a post in the sidebar and the full post shows up in main area of the page. Still with the sidebar present.

    The difference is that I do not use a sidebar and that I have both of my areas in the middle of the Page. I just would like to be able to pinpoint where a post will show up on a Page when you click on the link for the post.

    Thanks in advance


Viewing 6 replies - 1 through 6 (of 6 total)
  • It shouldn’t matter whether you’re using a sidebar or not; I’ve created “themes” (if you can call them that) where the only template was the index.php file.

    Exactly what problems are you experiencing? As you said, you should just be able to embed the Loop into Area Right. What happens when you do that?

    Ok, I will try to make some of drawing here below in order to explain.

    List of post I The posts in full text
    1. I
    2. I
    3. I

    So, the posts in a certain category will be listed in the Left Area.
    When I click on any of the heading in the list in Left Area I would like the post to show up in full text in the Right Area.

    I have managed to create the list in the Left Area. This was done by inserting the code mentioned in my previous post in the Left Area.

    I followed your advice and put the loop in the right area. But what happens then is that when I click on any of the headings in the Left Area the post in full text shows up on a new page and not in the Right Area. As I said I would like the Left Area remain and the post to show up in the Right Area.

    I hope I have managed to explain a little bit more clearly what I am trying to achieve.

    Thanks again in advance


    And of course my drawing above did not show up as I expected. I’ll give it another try.

    Left Area Right Area
    List of Post The clicked post in full text.

    When you say the text loads in a new page, do you mean a new window, or the current window reloads to show the text?

    If it’s the latter, why isn’t it on the right hand side?

    Can you post a link to your page code?

    And if you’re trying to draw diagrams with text, better use code mode:

    LEFT AREA                 I   RIGHT AREA
    List of post              I   Post 2 text shows up
    1.                        I   in this window.
    2. this link clicked ------->
    3.                        I

    Hi Kalessin and thanks for your advice regarding drawing diagrams in code mode. Obiously it looks far better that way.

    The construction I would like to have is exactly the one that you have drawn in your latest post. What happens in my case is that the current window reloads and shows the text only. Thus the list of post to the left disappears. And that is not the way it is intended.

    Unfortunately I have installed the site only locally so I am not able to give you a link. Hopefully the information above i sufficient for you to help me out here

    Thanks again.


    It sounds as though your main template is set to display the list of Posts, but you’re using a separate template to load the Post (possibly single.php or a custom temaplate) which doesn’t contain the tag to list the Posts.

    I think you’re going to have to post your code.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Direct where posts show up on a Page’ is closed to new replies.