Support » Themes and Templates » Opening posts in one ‘postholder’ on a page

  • Resolved md84

    (@md84)


    Hey,

    a couple of months ago I made a website for a friend of mine (http://www.robinpiree.nl), which I am now turning into a WordPress theme (so he can use it as a CMS supported website).

    Problem is that I am having trouble with one of its pages –> the film page.

    For the submenu (above the regular menu) I am using posts (see code below). When a post is clicked it should show its content in the center part of the website! In the static version of the website I used the $_GET function (which serves as a sort of placeholder), but doing this inside a WordPress theme is much harder. So I’m stuck!!!

    Can anybody help me?

    <?php query_posts('showposts=-1'); ?>
    <ul style="list-style:none;">
    <?php while(have_posts()) : the_post(); ?>
    <li>
    <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
    </li>
    <?php endwhile; ?>
    </ul>
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter md84

    (@md84)

    Additional information:
    – The above mentioned website is the static version, I am working on the WordPress version from a local server (XAMPP).

    Thread Starter md84

    (@md84)

    I found the solution in the ‘Single Post Template’ plugin, which let you use a template file for posts.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Opening posts in one ‘postholder’ on a page’ is closed to new replies.