Articles of plugin simple fields

Add simple field column to the posts screen

I know that manage_posts_columns is the hook for managing the column in post screen. I can add a column with following code, // add new column hook add_filter(‘manage_posts_columns’, ‘add_new_column_in_posts’); function add_new_column_in_posts($columns) { $columns[‘premium’] = ‘Premium’; return $columns; } My question is, how can I feed the simple_field value for that column?

Custom query object with Simple-Fields custom date field

I’m currently using the simple-fields plugin to add an event start date field that is a date type field to a custom post type called an ‘event’. On my homepage I’m looking to display the three closest events to today’s date that haven’t passed today’s date. I currently have: $recent_events = new WP_Query(array(‘post_type’ => ‘phelps_event’, […]

wp query for popular post with simple field

I used simple-fields plugin for one addition field(premium posts) and now I need to change the popular post widget. I need to get all popular post exclude premium post. What I have tried so far, original query, $popularposts = new WP_Query(‘showposts=5&meta_key=post_views_count&orderby=meta_value_num&order=DESC&ignore_sticky_posts=1’) edited query, $args1 = array( ‘showposts’ => 5, ‘ignore_sticky_posts’ => 1, ‘meta_query’ => array( […]

Alternative to simple fields plugin?

I have been building websites with WordPress for a couple years now, and have become very reliant on the Simple Fields Plugin. Essentially this plugin lets me attach extra fields to the bottom of my “edit” pages; for example: repeatable image upload fields, extra text fields, etc… This plugin is currently out-of-date and does not […]

how to get shortcodes to work inside the text of custom fields

I am building a learning management system using WordPress, custom fields, and various plugins, especially SIMPLE FIELDS by Par Thernstrom. My shortcode plugins, such as Shortcode Exec PHP and Custom Field Value, work fine in the main editing box, but if I put any of my course information shortcodes into a custom field, they don’t […]