Support » Fixing WordPress » Custom template for posts

  • Hey,

    I’ve managed custom templates for specific categories by using the category-1.php method.

    What I’m trying to do now is create a custom template for specific posts i.e. for one post I want a different set of links on the sidebar that relate to that specific post.

    Is this possible?

    Please help

Viewing 2 replies - 1 through 2 (of 2 total)
  • See Conditional Tags in the WordPress Codex, the online manual for WordPress users, for help on doing this in your sidebar.

    Hey Lorelle!

    Thanks for that little tidbit.

    I’m not an expert in PHP but I imagine the call:


    Says to WordPress “if this is post number 17 then bring in some data”.

    How do I put this in my code?

    I’d like it to call in a php file for example: blueposts.php

    I’ll try and work this out in the meantime so thanks for the heads up!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom template for posts’ is closed to new replies.