
Wordpress Update Post Meta
- or -
Post a project like this3962
£25(approx. $33)
- Posted:
- Proposals: 3
- Remote
- #606732
- Awarded
Description
Experience Level: Intermediate
General information for the website: Property website
Kind of development: Customization of existing website
Num. of web pages/modules: 1
Description of every page/module: I have a client with a property website. Wordpress 4.0, realia theme by aviators, importing by xml using wpallimport
todays problem to be solved is that when a property is imported, only the first image is applied to the post and subsequent images are just sat in the gallery and we have to manually add them to the property slider.
What needs to happen is that upon import, all the images for each property are added as slides to that property and saved.
there has been some feedback from aviators saying:
"One important thing to say – we are using wp_alchemy. And wp alchemy has one additional field. Which holds the list of the fields which are handled by wp alchemy.
So lets have our metadata
gallery => 1, 2, 3, 4
price => 500 000
location => Beverly hills
meta_fields => ‘price’, ‘location’
In this hypothetical situation wp_alchemy checks meta_fields and it sees it should handle price and location, but not gallery, so it ignores it :)
So what you need to do is to make sure you will get this ‘gallery’ in ‘meta_fields’
its called
_property_meta_fields
and you need to make sure that something like
update_post_meta($post_id, ‘_property_meta_fields’, array(‘_property_slides’, ’...’, ‘all other fields in array’));
is done..
http://codex.wordpress.org/Function_Reference/update_post_meta
Cheers"
Can you help me sort this out?
Description of requirements/features: I have a client with a property website. Wordpress 4.0, realia theme by aviators, importing by xml using wpallimport
todays problem to be solved is that when a property is imported, only the first image is applied to the post and subsequent images are just sat in the gallery and we have to manually add them to the property slider.
What needs to happen is that upon import, all the images for each property are added as slides to that property and saved.
there has been some feedback from aviators saying:
"One important thing to say – we are using wp_alchemy. And wp alchemy has one additional field. Which holds the list of the fields which are handled by wp alchemy.
So lets have our metadata
gallery => 1, 2, 3, 4
price => 500 000
location => Beverly hills
meta_fields => ‘price’, ‘location’
In this hypothetical situation wp_alchemy checks meta_fields and it sees it should handle price and location, but not gallery, so it ignores it :)
So what you need to do is to make sure you will get this ‘gallery’ in ‘meta_fields’
its called
_property_meta_fields
and you need to make sure that something like
update_post_meta($post_id, ‘_property_meta_fields’, array(‘_property_slides’, ’...’, ‘all other fields in array’));
is done..
http://codex.wordpress.org/Function_Reference/update_post_meta
Cheers"
Can you help me sort this out?
Extra notes:
Kind of development: Customization of existing website
Num. of web pages/modules: 1
Description of every page/module: I have a client with a property website. Wordpress 4.0, realia theme by aviators, importing by xml using wpallimport
todays problem to be solved is that when a property is imported, only the first image is applied to the post and subsequent images are just sat in the gallery and we have to manually add them to the property slider.
What needs to happen is that upon import, all the images for each property are added as slides to that property and saved.
there has been some feedback from aviators saying:
"One important thing to say – we are using wp_alchemy. And wp alchemy has one additional field. Which holds the list of the fields which are handled by wp alchemy.
So lets have our metadata
gallery => 1, 2, 3, 4
price => 500 000
location => Beverly hills
meta_fields => ‘price’, ‘location’
In this hypothetical situation wp_alchemy checks meta_fields and it sees it should handle price and location, but not gallery, so it ignores it :)
So what you need to do is to make sure you will get this ‘gallery’ in ‘meta_fields’
its called
_property_meta_fields
and you need to make sure that something like
update_post_meta($post_id, ‘_property_meta_fields’, array(‘_property_slides’, ’...’, ‘all other fields in array’));
is done..
http://codex.wordpress.org/Function_Reference/update_post_meta
Cheers"
Can you help me sort this out?
Description of requirements/features: I have a client with a property website. Wordpress 4.0, realia theme by aviators, importing by xml using wpallimport
todays problem to be solved is that when a property is imported, only the first image is applied to the post and subsequent images are just sat in the gallery and we have to manually add them to the property slider.
What needs to happen is that upon import, all the images for each property are added as slides to that property and saved.
there has been some feedback from aviators saying:
"One important thing to say – we are using wp_alchemy. And wp alchemy has one additional field. Which holds the list of the fields which are handled by wp alchemy.
So lets have our metadata
gallery => 1, 2, 3, 4
price => 500 000
location => Beverly hills
meta_fields => ‘price’, ‘location’
In this hypothetical situation wp_alchemy checks meta_fields and it sees it should handle price and location, but not gallery, so it ignores it :)
So what you need to do is to make sure you will get this ‘gallery’ in ‘meta_fields’
its called
_property_meta_fields
and you need to make sure that something like
update_post_meta($post_id, ‘_property_meta_fields’, array(‘_property_slides’, ’...’, ‘all other fields in array’));
is done..
http://codex.wordpress.org/Function_Reference/update_post_meta
Cheers"
Can you help me sort this out?
Extra notes:

Sharron M.
100% (12)Projects Completed
18
Freelancers worked with
17
Projects awarded
35%
Last project
16 Jun 2018
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies