I'm setting up a real estate website. I make listings using a custom post type named listings
in which I have multiples meta boxes for beds, baths, and various other information.
I use a plugin to import these posts because listings are generated from third-party software (XML file with Xpaths). Everything works fine when importing listings.
The BUT is that the theme inserts images attached to the post _wp_attach_file
... file.
The XML makes easy to get the paths to images, but I can't figured out how to make them 'be attached' to the post to load up.
Is it possible to attach them using custom fields?
(I need to do this for almost 500 posts through WP ALL IMPORT - XML XPath importer plugin - which I can insert custom_fields
and meta boxes lines.)