N
N
nezzard2014-01-30 22:14:09
PHP
nezzard, 2014-01-30 22:14:09

How to add a custom field to all posts in Wordpress?

Good evening, tell me how to add a custom field in wordpress to all posts? Maybe via functions?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Zelenin, 2014-01-30
@zelenin

select all records:
then in a loop, or insert a field with mysql queries, or add_post_meta
I don’t see any other options

S
Stanislav Kim, 2014-03-02
@cyberS7

I use the More Fields plugin

A
Alexey, 2014-04-11
@algreenzer

Code: Custom field
Plugin: Advanced Custom Field
If you have any questions, ask - I'll try to help.
PS Displaying custom fields in the admin panel for each entry can be done through the "screen settings". Check the box, and at the bottom when creating records, there will always be a column of arbitrary fields.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question