WordPress.org

Ready to get started?Download WordPress

Forums

Template tags on Pages in 1.5? (3 posts)

  1. dnorman
    Member
    Posted 9 years ago #

    I'm working on migrating a backup of my weblog to the latest 1.5 nightly, and am having a bit of trouble replicating some of the functionality that I worked up under 1.2

    I have a bunch of pages that were copies of index.php, which are used to list categories, links, recent posts, etc... They use the template tags to display the appropriate data.

    Works fine under 1.2, but if I try it under 1.5 (jan. 8 nightly), the php gets displayed as source rather than being executed. I've tried using static pages (copies of page.php or index.php), and using the new "Pages" feature (which would be perfect, if I could include template tags...) and both behaved the same.

    I can't just duplicate index.php as I did in 1.2, since the actual code is now in /wp-content/themes/mytheme/

    For info, my weblog is at:
    http://commons.ucalgary.ca/weblogs/dnorman

    And it's the links/pages in the header navigation that I'm trying to replicate.

  2. dnorman
    Member
    Posted 9 years ago #

    Found a workable solution on this post:
    http://wordpress.org/support/topic.php?id=20320

    So, I've made clones of page.php for each of the page types, then created Pages for each, selecting the template of the appropriate cloned page.php file. Works ok, but feels kinda hackish...

  3. Anonymous
    Member
    Posted 9 years ago #

    You could try switching off themes...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.