Ref. https://codex.wordpress.org/Plugin_API/Action_Reference/manage_posts_custom_column
Just use the WP built in action called “manage_posts_custom_column” and in callback check for the correct column and add simple_field value with the function simple_fields_value :
add_action( 'manage_posts_custom_column' , 'add_new_column_data_in_posts', 10, 2 );
function add_new_column_data_in_posts( $column, $post_id ) {
switch ( $column ) {
case 'premium' :
echo simple_fields_value("simple_field_slug", $post_id);
break;
}
}
Related Posts:
- Change default screen option value for posts per page
- set role specific screen options in post summary page
- Make Post Editor Select Number of Columns To 1 By Default
- how can display a post on home screen without images
- WordPress Screen Options, Help, Visual editor, Status, Visibility, Revisions, Published on and any toggled indicator don’t work for posts
- Get simple field value with post id
- Where is the old post permalink slug stored?
- Keyboard shortcut for updating a page or post?
- How to Change Order of Posts in Admin?
- Custom Post Types, slug, archive and SEO plugins
- get all posts ID from a category
- Action hook ‘wp’ firing twice… why?
- Manipulate post category after time
- Categories box not showing on post edit pages
- how to enable different number of revisions for different blogs when using WPMU?
- Removing the title attribute from links in the post content
- Some posts returning 404 instead of displaying post
- How to enqueue scripts depending on post formats?
- Custom function for “Submit for Review” hook
- If specific user role then sticky post
- How to add a custom field after wp post
- Submitting POST data to a custom page template triggers a 404, why?
- How do I add a custom body class to the admin area of a page?
- How to prevent WordPress from updating the modified time?
- Custom WP_QUERY $args
- Dynamic carousel on individual posts
- Can’t get the_content of the parent page from its single post?
- How do I Show ALL posts for Catagories and Tags?
- Prepend or add an Image to the content of a Post
- Remove all links in post content
- Classic editor throws 403 error based on post content
- How to build a site with a map that shows where people offer and need help?
- I get this error message when I try to add a module to a course on my website using Sensei plugin
- Post categories to pages
- Publish post’s date is set to Nov 30 -0001
- WP_Query: Mixing category__in and tag__in together
- Fix existing media names with accents
- Any way for get_next_post() to use the actual post order instead of publish order?
- How to display excerpt post on hamepage and archive pages?
- Worpdress function for difference dates
- Get all comments of author’s posts
- Problems with Page Not Found
- Get posts and include taxonomy term
- Adding bootstrap classes to video shortcodes
- Two Custom Post Types with Identical Articles Competing for the same Slug
- Single Post in Tab/Slider
- get_posts from a category id doesn’t work
- Change page creation layout
- Get post number both in the loop and in the post
- posts_per_page returning only one post
- After ajax image is outside the “ tag
- Sticky Post from page 2 and on
- Get current post’s nav menu name (term name)
- Get latest author posts inside the loop
- Post is in descendant category not working in home.php
- How to show 3 most recent/viewed posts in a special tiles on home page using wordpress?
- Approve modified posts
- How to repeat a loop after 4 posts [duplicate]
- How to show beneath posts the full category path?
- User friendly news section in WordPress without using posts
- How to assign a post to a post parrent?
- AWS usage queries
- Bulk update published posts date randomly using wp-cli?
- Hook when post is set from published to draft?
- Use posts from old db by changing prefix
- Sync All Post Type Tag
- Override default post type ‘post’
- ‘posts’ table should not store the absolute image path
- How to make a page show posts only from specific categories without editing php files
- Assign a day of the week to post, e.g: Assign Monday to post and have it only appear when the day is Monday
- Redirecting user to a page when there is no content?
- Is it possible to query a category with specified posts?
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- how to redirect page after delete post inside a post page?
- Add caption to thumbnails in content
- WordPress URL question
- How to retrieve a post by inputing the url in a custom field and displaying it on an options page
- Theme does not respect spaces between paragraphs in pages
- Custom fields in normal posts
- Modify WordPress loop after it has been run
- How to get next_posts_link working with a customised page
- exclude one child by id from $post->post_parent
- Ordering posts alphabetically by meta keys and title
- Continuous listing from a custom field
- Text editor has problem with having ” in a post
- Getting posts from multiple users?
- WordPress Post Grid
- Why I getting only 1 post?
- Choose options via url
- Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]
- Stripping tag from elements in post
- find view post hyperlink in PHP wordpress admin file
- Show all posts in category
- Even/Odd every two posts
- What function does the loop of displaying posts?
- Imported Posts missing summary text on staging site
- Read more opens attachment
- How to show video from post on the all posts page?
- Show a page counter for pagination
- WP_Query post_tilte search in posts table