$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>customization - Is there a way to set default custom fields when creating a new post?|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

customization - Is there a way to set default custom fields when creating a new post?

matteradmin7PV0评论

When I'm creating a new post, just after clicking "Add New", when the post editor shows, instead of having to use the dropdown and choose a custom field to use, I'd like to have some default custom field inputs already opened.

None of the codes from here worked for me

:3

When I'm creating a new post, just after clicking "Add New", when the post editor shows, instead of having to use the dropdown and choose a custom field to use, I'd like to have some default custom field inputs already opened.

None of the codes from here worked for me

:3

Share Improve this question edited Feb 18, 2019 at 20:58 Dave Romsey 17.9k11 gold badges56 silver badges70 bronze badges asked Jan 20, 2019 at 9:32 user159405user159405
Add a comment  | 

1 Answer 1

Reset to default 1

you can do that better with install advanced custom fileds plugins or any plugin and specify the custom field to all posts , you can install this plugin

or by your simple codes in wordpress and choose one

Post a comment

comment list (0)

  1. No comments so far