Skip Navigation

[Resolved] Managing CPT created by 3rd party plugin

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 4 replies, has 2 voices.

Last updated by Minesh 1 year, 2 months ago.

Assisted by: Minesh.

Author
Posts
#2646253

Hello,

I followed the instructions mentioned here https://toolset.com/forums/topic/linkining-custom-fields-and-post-types-created-with-3rd-party-plugin/ to manage CPT created by a 3rd party plugin.

The name of the plugin is Reseller Store (https://wordpress.org/plugins/reseller-store/)

Now here is what I did:

1. disabled the Reseller Store plugin.
2. created the CPT Reseller Products with the same slug as that of the Reseller Store, in this case “reseller_product”.
3. created the Taxonomies with the same slug as that of Reseller Store, in this case “reseller_product_category” & “reseller_product_tag”.
4. reactivated the Reseller Store plugin.
5. cleared the object & page cache.
6. went to Reseller Products CPT, wp-admin/edit.php?post_type=reseller_product, but no posts are being displayed.

To debug the problem:
7. went to Reseller Store CPT, wp-admin/edit.php?post_type=reseller_product, but it took me to the setup page. It seems that as soon as I deactivated the plugin, the plugin cleared all the data.
8. followed the steps to links the WP installation with the demo account.
9. went to Reseller Products CPT, wp-admin/edit.php?post_type=reseller_product, but still no posts are being displayed.
10. went to Reseller Store CPT, wp-admin/edit.php?post_type=reseller_product, and it is showing all the products.

I am unable to debug the issue as to why the CPT created with Types is not showing any data, yet the CPT created by the Reseller Store plugin is showing the data.

If you wish, I can provide a login to check the setup.

#2646563

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I do not have much exposer with the plugin you shared.

But when I downloaded the plugin and checked the files I can see with the readme.txt file of the plugin the following line:

* Fix: No longer delete custom posts on uninstall of plugin

There must be some setting or you must contact the plugin support to know how you can not delete your desired content when you deactivate the plugin. As I can see some related code that delete the posts on uninstallation of the plugin.

Can you please check first with Reseller Store plugin support about how you can keep that content to your local database and do not delete when you deactivate the plugin.

#2646765

Hello,

1. As regards to the posts getting deleted or vanishing when the reseller plugin is deactivated, I will check with the relevant support team, but this might take a few days.

2. The main issue here is that the posts from the Reseller Store CPT are not showing in Reseller Product CPT, despite both of them having the same CPT slug.

Irrespective, my main purpose is to create a custom archive template for Reseller Store CPT, but the problem is that Reseller Store CPT, its taxonomies, and its custom fields are not displaying anywhere in:

— Types
— Stackable
— Blocksy

Even if one of them shows up, it freezes the archive template and I can no longer perform any actions on the archive template.

So, I thought to manage the Reseller Store CPT using Types so that it becomes easy to create archive template.

#2647399

Hello,

I finally was able to debug this out.

Reseller Store slug was reseller_product, whereas Reseller Product slug was reseller-product.

Similarly, Reseller Store Category slug was reseller_product_category, whereas Reseller Product Category was reseller-product-category, and Reseller Store Tag slug was reseller_product_tag, whereas Reseller Product Tag was reseller-product-tag.

The only difference being the underscore & hyphen.

I now am able to manage the Reseller Store CPT using the Reseller Product CPT in Toolset.

Keeping the thread open just in case I encounter any further issues related to the subject.

Thanks.

#2647415

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok great and glad to know that you spot the correct slug and shared the information here that might help other users in the future having the same issue. You're welcome to mark resolve the ticket when you can.