Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Replacing plugin with cptui_register_my_cpts() doesn’t work

$
0
0

Replies: 0

Hello, I typically leave the plugin Activated, but for distribution purposes, I wanted to use the generated code in functions.php instead.

1.go to CPTUI>Tools
2.Copy/paste cptui_register_my_cpts() to functions.php
3.Deactivate CPTUI plugin

It should be pretty straightforward, but just step 2. makes things not work anymore. My custom posts (/custom-posts/my-title-here/) no longer show up and are replaced with the home page content (defaulting to index.php I suppose), and the custom post types archives (/custom-posts/) pages also default in the same way.

de-activating the plugin in step 3 doesn’t do anything more. I traced the code and I can see the cptui_register_my_cpts() being executed.

Wondering what I could have missed, and what else to check on. Thanks!


Viewing all articles
Browse latest Browse all 59525

Trending Articles