Conflict with Custom Post Type UI Plugin
-
When I use Post My Contact Form 7, it causes an issue with my custom post types created with the “Custom Post Type UI” plugin. When I try to view a custom post or archive, it redirects me to the homepage.
Post My Contact Form 7 is definitely the cause of the issue, as disabling this plugin fixes the issue. Is this a known issue and is there a fix?
-
I have never used “Custom Post Type UI” plugin, however from what I read on the plugin page it handles the WP registration of custom post-types for you.
Post My CF7 Form also handles WP registration of custom post-types and taxonomies in order to map forms to posts. The code involved in registration custom post-types can be quite complex as there are many parameters that can be defined to tweak your custom posts. it is therefore likely that the 2 registrations processes are interfering with one another.
Post My Contact Form 7 is definitely the cause of the issue, as disabling this plugin fixes the issue.
most likely you will find that disabling the Custom Post Type UI plugin also fixes the issue ??
Anyhow, there may be certain conditions/settings where the 2 plugins can operate without disturbing the other. So I need a little explanation as to what you are trying to do and for purpose you are using the Custom Post Type UI plugin.
Are you creating a custom post-type for your mapped forms using the Custom Post Type UI plugin and then trying to use the Post My CF7 Form plugin to map the form to this custom post-type?
Hi Aurovrata, thanks for your response.
most likely you will find that disabling the Custom Post Type UI plugin also fixes the issue ??
I gave that a try, but it didn’t seem to work.
Are you creating a custom post-type for your mapped forms using the Custom Post Type UI plugin and then trying to use the Post My CF7 Form plugin to map the form to this custom post-type?
Yep, that’s exactly what I’m doing.
I gave that a try, but it didn’t seem to work.
that’s odd. Are you by any chance running some custom hooks/filters on the registration of these post-types?
Yep, that’s exactly what I’m doing.
Is it possible to let the Post My CF7 Form handle the creation of the post-type for you instead of the Custom Post Type UI plugin? Remove the custom post-type from the plugin and select a New Post option from the mapping admin page. Set up your post-type and map your form.
I’m not running any custom hooks or filters.
I have just tried to use only Post My CF7 Form. I disabled the other plugin and created a new post type with your plugin, but I am having the same problem. The URL just redirects me to the homepage.
Alright. Could you please follow the instructions in this thread and report back the errors you get.
No worries, here’s my debug.log. Website URL changed for privacy, hope that’s okay.
And my Javascript console is showing the following:
Load denied by X-Frame-Options: https://www.facebook.com/xti.php?xt=AZUpbFqkCP-rIpDIzJ1ex8rcNTYAECM1qfIazbB_DeqjdzdtWcoZlkc3A_MnxoKCOwVd2tcKyfSI8kVBe1X4HWwJS_o0HyDdxuBV22pEXj1n9KzhTvRYk97gI9zAkRglfvvyfWBeFa2loPCOVCZjw0bdWRHmjFMSUWiVx2siKMqDil6KTm3yvh4qb1dZY2TRn9Susu8nQ6Td6xcqdrJkK-RqxHcjYTa1iODdZGxLY6cqhf-R5UabzuKxqe8VwkQeN5-APm9s0Ne610VHUZi9e-OYRdYHeV1cnf4QXBAaQcVIUbFdo8b8kNsqCtRiTVjSFjD6-KsAQB2B2W-Kl5i2QSLvs4EblpOKXgibsQ3t6zyblwx2t13yRQAmhkwfSVkAs8bWkdAX8e3cMtoTDAicJd6s6noL9iqriafz_1IdznCE0JymGnfamj5IAouBaSFcrXHgS5pPiB-REzMIWbwIpYd5QmhlO0Lrm6RdId7MSlzubhURBn-d5olG5xUVVww_K0wejcXcIUr6lDHlHH9IhFoLBvyPPbjwyK1keO2MIgwaS681B64ErueeiLTf08kzHCb3RpH-LnM_naRG3TmNEwqcef1PsQQ8sJMhXLrLIIuwd6puFp76CsH2Omtf-92w1o7I9GTmSpWK43M_qdAIHolMPZZazaGsVIPKlKsFrPfpPez3XidGfCthSJ8wnxRrtVWXrj6eqapKZFB2hJdhjiXsmTkUTdBAjhVU-cOP8Ay9f2kxTH17mFoSgyVJSok4eE7tMxU9l0PMMJ0OnOzfgnaetM3Rc6SSuACZZIS4edqxwX7xfEzvOz-2lY0ib3bLFbCgLd7nzyY4IOwPNbYj978aSAIaPvrc5M_0vV4ZnmoOeg&isv=1&cts=1515249031&csp does not permit cross-origin framing. JQMIGRATE: Migrate is installed, version 1.4.1 jquery-migrate.min.js:2:542 perf_trace {"name": "e2e", "parent": "PageEvents.BIGPIPE_ONLOAD"} 3CsmirK3Bqr.js:184:2813
there isn’t any errors originating from the plugin from the log you shared, nor on the console.
Re-reading your initial description of the problem,
When I try to view a custom post or archive, it redirects me to the homepage.
I am assuming there is a conflict in the way Custom Post type UI has defined the post and this plugin interprets those settings.
Ideally you should let Post My CF7 Form plugin create the custom post type for you.
Else use Custom Post Type UI Tools export facility to send me your custom post settings.
-
This reply was modified 7 years, 2 months ago by
Aurovrata Venet.
I should have mentioned this, but I am no loner using Custom Post Type UI any more. The custom post type was created with Post My CF7. Still having the same problem.
Oh, that’s very odd. Can you please take a screenshot of your custom post settings on the mapping page and tell me if if you are using any hooks (actions/filters) to modify the custom post registration.
Please note that in order for your custom post to be visible on the front-end it need to be public, and if you need archive functionality you need to enable that too. All this can be achieved from the mapping post attributes.
Here’s a screenshot of my settings.
The plugin is working just fine. You have configured your post not to be visible on the front end nor to have any archive. Please read my previous msg carefully and read the WP codex page on post registration carefully to better understand how to create custom posts.
Oh, and I’m not using any hooks either.
When I try to view a custom post or archive, it redirects me to the homepage.
If you want to view your custom post, check ‘public’. If you want to to enable archives check ‘has_archive’. Registering a custom post can be quite complex, there is a lot of subtlety and therefore I recommend you read the codex to understand it.
By default the plugin has public unchecked precisely for the case of users not knowing those subtleties and therefore prevent having their clients submitted data being visible on the front-end.
-
This reply was modified 7 years, 2 months ago by
- The topic ‘Conflict with Custom Post Type UI Plugin’ is closed to new replies.