The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Custom Post Type UI
[resolved] single-destinations.php ?? (3 posts)

  1. AwMurph
    Posted 3 years ago #

    Hey there! I love this plugin. Thanks a bunch.

    How do I alter the individual view of each custom post I create? Does this somehow relate to single-destinations.php ??

    If I wasn't clear enough basically what I've done is create a custom page template that includes a custom WP_Query that lists my individual custom posts. I have used the_permalink to link to the individual pages but I don't know how to style them.

    Lastly, albeit unrelate to the plugin, any idea on how I might go about removing the custom post type slug so only the individual post type slug is used. For Example:

    http://example.com/custom-post-type/individual-custom-post is how it currently displays and I want to display http://example.com/individual-custom-post

    Thanks a bunch!


  2. Michael Beckwith
    Plugin Author

    Posted 3 years ago #

    Yes, single-posttypeslug.php would be where you go for editing the single view for the post type you register. CPT UI doesn't do anything for that for you, it just does the registering for you. You still need to handle template files and querying yourself. I'll throw in that if you have the body_class() function on your <body> tag, you'll get classes specific to each post that you could conditionally style with in css.

    Not quite sure with with the rewriting of the url. It's one of those areas I'm not great with. I'd wager it's possible though.

  3. AwMurph
    Posted 3 years ago #

    Thanks a bunch Michael!! You saved my butt.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type UI
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic