Home › Forums › Backend Issues (wp-admin) › Column from my field on post edit screen › Reply To: Column from my field on post edit screen
Fuf. I understand how!
Code add to “wp-content/themes/your_theme/functions.php”
I get new column. But it empty! Help me wrote last string.
function my_post_columns($columns)
{
$columns = array(
'cb' => '<input type="checkbox" />',
'title' => 'Title',
'price' => 'Price',
'categories' => 'Categories',
'tags' => 'Tags',
'author' => 'Author',
'date' => 'Date',
);
return $columns;
}
function my_custom_columns($column)
{
global $post;
if($column == 'price')
{
/*I NEED LAST STRING HERE, PLEASE!*/
}
}
add_action("manage_post_custom_column", "my_custom_columns");
add_filter("manage_edit-post_columns", "my_post_columns");;
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.