WordPress.org

Ready to get started?Download WordPress

Forums

Custom Posts and script (4 posts)

  1. bieke81
    Member
    Posted 3 years ago #

    Hi,

    I have, for the first time, created a custom post. Now, the thing is, I want to have an advertisement only on these posts. As the custom posts don't have a file of their own, like single.php, what is the best way to do that without having to add the code to each post? It might be a simple solution, I just don't find it.

    Leslie

  2. Josh Leuze
    Member
    Posted 3 years ago #

    Hi Leslie, custom post types can have a template file of their own, and that would be a great way to pull this off :)

  3. bieke81
    Member
    Posted 3 years ago #

    That was exactly what I was looking for and couldn't find. Thank you big time :)

    Leslie

  4. Josh Leuze
    Member
    Posted 3 years ago #

    No problem Leslie.

Topic Closed

This topic has been closed to new replies.

About this Topic