b3rend
Forum Replies Created
-
Forum: Plugins
In reply to: [Broadcast] The attachment ID 8872 does not have a filenameWell in a normal WordPress installation it probably isn’t but we wrote quite a huge plug-in. We add multiple custom post types, and use meta boxes to add tons of fields to each custom post type.
To the custom post type “Oefening” (which I tried to broadcast) we add a meta box of type “post” were an post of type “Vaardigheid” can be selected. So the post of type “Vaardigheid” must be shared before the post of type “Oefening” with the attached “Vaardigheid” is shared.
array( 'id' => 'vaardigheid', 'name' => __("Vaardigheid", "onlinebasketballacademy"), 'type' => 'post', 'post_type' => 'vaardigheid', 'field_type' => 'select_advanced', ),Forum: Plugins
In reply to: [Broadcast] The attachment ID 8872 does not have a filenameThanks for your fast response, much appreciated!
Though it is not as easy as you say, sadly. The “attachment ID” is not an attachment, its another post (another custom post type again) which I cannot simply delete.. Now it makes more sense to me..
I found the problem, actually it is not an issue with your plug-in, I a sorry. The first post I was trying to broadcast had another post (which was not broadcast-ed) attached to it.. When I first share the attached post, then try to share the first post again (the one I posted above) it works. It would be neat to automatically share the attached posts too, when you broadcast this post.
I build a similar plugin when connecting multiple WooCommerce webshops together, when a product is shared to another webshop (through the api) it find added attributes tags and pushes these to the child website before the product is shared.
You pointed me in the right direction, the issue is resolved. Thanks a lot.