How do I publish Post contain subTitle using the API

Posted in: Newspaper
Post count: 4

Hello
When I try to publish Post has a subtitle to By API
Supposed to I set values of custom_field as follows
key = “td_post_theme_settings”
value = “a:1:{s:11:\”td_subtitle\”;s:8:\”subTitle\”;}”
But I find the value it may turned in the database to the following figure
s:40:”a:1:{s:11:”td_subtitle”;s:8:”subTitle”;}”;
It seems may turned the array to string by Add s:40:”my value”;
How do I publish the array value is intact
Thanks

Post count: 23312

Hello mos_dja,

Please keep in mind that the WordPress automatically serialize all the values and we use the WordPress functions to save and read these values as you can see in the following screenshots -> http://screencast.com/t/gnnAoJxZvC6Q -> http://screencast.com/t/WW1X9cOq6su -> http://screencast.com/t/3t9gwB1Q -> http://screencast.com/t/FbpwgteI and the storing parameters is done through WPAlchemy. You will have to use the update_post_meta and for more references in this regard, please consult the Codex documentation here -> https://codex.wordpress.org/Function_Reference/update_post_meta Please notice that is not a simple task this request and if you are not aware of the steps which you needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide customization services at the moment, sorry!

Thanks for your understanding!

Post count: 4

Thank you for your response Mr Catalin
Unfortunately I’m not PHP programmer , will not do I edit the code might cause errors and because of updates are also, I will publish subtitle At the beginning of post_content
<p class=”td-post-sub-title”>Subtitle</p>
Hoping to address the matter in the near future
Thank

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.