Hi,
Let’s say I’m using the excellent Advanced Custom Fields plugin. Is it possible to create a field where the user can edit the td_subtitle provided in the post settings that come with the theme? I want to hide that box, but still have access to editing just the subtitle field.
Thanks!
Hi,
You can find the code for subtitle field here http://screencast.com/t/1tvKUKfyo
You could try to move it form post settings or use Advanced Custom Fields plugin to create and custom field where you can edit it like you said it should work although it’s not an easy task so you can try to search the web for a solution to this or hire a freelancer to do it for you if you don’t know how to do it.
Thanks
Thanks!
Well, I’ve created custom fields with the plugin and displayed the values in a theme, so I’m somewhat comfortable with it. But when I found the above code yesterday and created a custom field with fieldname td_subtitle, it seemed like it didn’t actually update when I saved the post. I guess because the post settings box is also saving the value? Or something? Maybe this is the difficult part…
Oh, I … I see … it’s associated with the meta key td_post_theme_settings in a serialized array value, e.g. a:1:{s:11:”td_subtitle”;s:25:”some subtitle text goes here”;} … Welp, I’m lost.
I guess I could just alter my various single pages to use my own field instead, right?
-
This reply was modified 12 years by
TheMediumUTM.