WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. AwMurph
    Member
    Posted 11 months 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!
    -Alex

    http://wordpress.org/plugins/custom-post-type-ui/

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 11 months 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
    Member
    Posted 11 months ago #

    Thanks a bunch Michael!! You saved my butt.

    -Alex

Reply

You must log in to post.

About this Plugin

About this Topic