Replies: 8 comments
-
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Beta Was this translation helpful? Give feedback.
-
Hello @MrBin99, I use this plugin: Duplicate Post |
Beta Was this translation helpful? Give feedback.
-
Thanks @JoryHogeveen, now it works partially. Some fields are well duplicated but some are not. |
Beta Was this translation helpful? Give feedback.
-
Hello @MrBin99 |
Beta Was this translation helpful? Give feedback.
-
I've tested with a fresh install. In fact, it doesn't work if you use the "Table Storage" plugin and if you set the pod to be stored in his own table. I think relationnal fields are stored in metas in both situation, this is why it works just for those fields. But plain fields are stored in the table newly created for the pod. |
Beta Was this translation helpful? Give feedback.
-
Ah got it. Yes Table Storage won't be supported by any duplicate post plugin since this is a specific Pods feature. It's not stored as metadata so other plugins won't recognize it without custom integration. |
Beta Was this translation helpful? Give feedback.
-
Ok. But Pods functions for saving are called (I followed the trace). It's just that if it's a "Table Storage" pod, the plugin is not retreiving data from the custom table and do just the posts defaults and metas. This is why the empty row in the database, the save call is made but with no data :) Do you plan to fix that ? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hi @MrBin99 We might create some compatibility code in the future but since this is an edge case it won't be high priority, sorry. I'll keep this issue open for future reference. You could always look for hooks in the duplicate posts plugin. Cheers, Jory |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I try to duplicate post from a custom post type created with Pods. But the problem is that no Pods fields are duplicated.
Wordpress default fields (such as title or featured image) and post metas related to the post are well duplicated but any field in the post form are filled (all empty or with the default value).
I use the plugin "Table Storage" for storing pods in different tables. When I duplicate a post I see the line created in the database but all columns are NULL.
I tried multiple plugin to duplicate posts, same result. Currently I use this one https://fr.wordpress.org/plugins/post-duplicator/
To Reproduce
Steps to reproduce the behavior:
Go to a custom post type created via Pods and try to duplicate it.
It is well duplicated but with no fields filled with values of the other post.
Expected behavior
Duplicate fully the post with all custom fields from Pods.
Screenshots
Pods Version
2.7.14
WordPress Environment
PHP Version: 7.0.27-0+deb9u1
MySQL Version: 5.5.5
Server Software: Apache/2.4.25 (Debian)
Your User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Currently Active Plugins:
Classic Editor: 1.5
Cookie Notice: 1.2.46
DynamicConditions: 1.2.1
Ele Custom Skin: 1.0.9
Elementor: 2.5.16
Elementor Pro: 2.5.8
Enhanced Media Library: 2.7.2
Gravity Forms: 2.4.6.2
Hide Updates: 1.1.3
Media File Renamer (Auto Rename): 4.5.4
Ocean Elementor Widgets: 1.1.6
Ocean Extra: 1.5.6
Panda Pods Repeater Field: 1.4.2
Plate: 3.0.2
Pods - Custom Content Types and Fields: 2.7.14
Post Duplicator: 2.20
Smush: 3.2.0.1
User Role Editor: 4.51
WP Crontrol: 1.7.1
WPS Hide Login: 1.5.2.1
Yoast SEO: 9.7
Possible Workaround
In the method
save_pod_item
of the PodsAPI$params->data
is an empty array so all the columns inserted in the database are NULL.Beta Was this translation helpful? Give feedback.
All reactions