Alternate template for single posts (permalinks) (2 posts)

  1. ptambwe
    Posted 8 years ago #


    I would like to prevent adsense ads from appearing on some posts (permalinks) that contain mature content and replace them with other ads. The problem is that my ad code is located in the single.php, sidebar.php and header.php templates. Is there a way to customize some permalinks to display an "alternate" single.php page?

    It would be awesome if in the next update of WordPress, we'd be able to select an alternate template when writing a post, just like the pages.

  2. Bassetts
    Posted 8 years ago #

    A quick search on google for "wordpress post template" revealed a plugin called (believe it or not) Post Templates and this seems to be exactly what you are after.

Topic Closed

This topic has been closed to new replies.

About this Topic