WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Make page contain archive of posts

[Resolved] Make page contain archive of posts

  • Hello.

    I searched myself tired trying to find a solution to this. I am not very skilled in PHP or WordPress, so I hope someone in here can help? It would be greatly appreciated!

    The problem:

    The short story is: I want to show a uniquely styled archive on a subpage, with the menu-item for that subpage, highlighted.

    The long story: I am using WordPress as a CMS for the website of a television station. Every tv-show has it’s own sub-page, with a sub-menu, made with this code: <?php wp_list_pages('title_li=&child_of=83&echo=0' . '</h2>' ); ?>. I have a css-class that is applied to all the non-chosen menu-items, and one that is applied to the one representing the page the user is currently on. You can see it in action here.

    Now, I also have an archive of all the episodes from that category currently on the frontpage.

    The problem is: I want one of the subpages (namely this one) to display that archive – and still have the “arkivet”-menu-item highlighted.

    I tried just pasting theloop from the archive-template to the template used on the “arkivet”-subpage, but it just replaces the list of posts with a list of one item, containing the content from the “arkivet”-page.

    I also tried making the “arkivet”-page a category page, by connecting cat=3 to that page. That did not seem to work either.

    How do I go about doing this? Is it even possible?

    Filip J.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Make page contain archive of posts’ is closed to new replies.
Skip to toolbar