• I recently started building an intranet (just a secured website operating on a remote network) for my company, and am having some problems setting up custom post types.

    Part of the intranet will include tutorials (how-to articles on easy stuff so our IT dept can save some time), and so I setup a page @ http://[ourdomain].com/support/tutorials and displayed the ‘tutorials’ under this page. So now if you go to .support/tutorials/, you get an archive page of all the ‘tutorials’. What I did was modify the “archives.php” file in my theme (currently using Colorwave) to pull in all ‘tutorials’ using a loop. That is working perfectly.

    The problem arises if you go to a specific custom POST (which shows the permalink properly for the post). So if you then click one of the titles (which is linked to the permalink of the custom post), you get directed to the url: [ourdomain].com/tutorials/permalink-for-the-specific-post. But instead of using the “single.php” file to build the page, I believe it must be using the archives template instead, because it shows ALL the posts of the custom post type ‘tutorials’ instead of just the one post.

    How do I set a template for the custom post? I have a feeling it would be best going forward if i could add a meta box for page attributes (since my custom post types are setup to support page attributes) and be able to set a template that way. i could modify a single.php file to pull the custom post by its ID. But the question still remains… how would I do that?

    Any help would be greatly appreciated! Thanks in advance!! 🙂

The topic ‘Permalink showing all 'posts' for a given custom post type’ is closed to new replies.