• Resolved uroboros

    (@uroboros)


    I’ve used this plugin before and really like it, but bizarrely I’m seeing on two sites now that if I create a custom post type with the UI plugin, the content from any of my posts or pages is NOT found! The titles still appear in the menus, along with their respective links, but then NOTHING shows up on the page. I’m using the stock WP 2014 and 2013 themes. The only way to get my content back is to disable Custom Post Type UI, then switch the reading settings back from viewing a single page for the homepage to viewing a list of posts. What in the heck could be causing this!??!

    https://www.ads-software.com/plugins/custom-post-type-ui/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Just to confirm, have you flushed the rewrite rules after creating the post types? I know somewhere in the current stable version is an attempt to flush them after creation, but I can’t say for certain it always works. I hope to have that resolved in the next version of the plugin and more assured.

    Also just for some extra confirmation, what post type slugs are you selecting for these? I’d like to see if there’s any possible chance of them conflicting somewhere else.

    If you have any links to the websites in question, I can give a peak there as well.

    The Settings > Reading setting you have shouldn’t be causing the conflict here, to be honest, but if it is, that’s a very strange issue.

    Thread Starter uroboros

    (@uroboros)

    Hey Michael! Can you tell me your method of flushing the rewrite rules? Is it in the custom post type ui somewhere? The only other thing I can think of is that I’ve got it so that the custom rewrite slug is ‘/’ – the default: post type name isn’t what I want with this site.

    I’d be happy to send you a URL, but I’d want to send it through a private message…

    Thread Starter uroboros

    (@uroboros)

    Oh, I forgot to mention that my post slug is all lowercase and no spaces, (i.e. ‘post_name’)

    Thread Starter uroboros

    (@uroboros)

    I think I know what is happening – it is obviously the Rewrite Slug I’ve chosen isn’t it?! I want each post to have nothing before it, so how do I safely do that? If I add ‘/’ like I previously mentioned, I think that is screwing up with the regular permalink structure for the site. But if I don’t want the post type name before the post name, how do I remove that? I tried using ‘/%postname%’ but that doesn’t quite work.

    duckz

    (@supersuphot)

    I have this error too one one of my site using WordPress 3.9.1 + Plugin Custom Posttype UI 0.8.2 Not sure why but all post page that is a parent page will get 404 not found.
    Ex.
    domamin.com/pagename/ —-> 404 Not Found
    domamin.com/pagename/subpage/ —-> OK

    I fixed it by use PHP code for custom posttype that plugin generated, and remove the plugin.

    FYI

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Flushing rewrite rules is as simple as visiting the permalinks page, and is nothing custom to CPTUI. It’s part of WP core.

    Not sure how to best go about removing the post type slug from your urls, I know you’d start running into possible conflicts with page slugs though, if you do.

    No idea offhand what may be causing that issue for you supersuphot.

    duckz

    (@supersuphot)

    I already flush rewrite rule (sorry I not mention that). It will work if I use default permalinks (?p=123).
    I even add new Page and it still get 404 not found too.

    I try google and see this forum no one have this kind of error. Maybe it conflict with some of my code. Now I use PHP to create cutom post type and it work great ??

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Post/Page Content not showing up! I get a 404 error!’ is closed to new replies.