Using wp_insert_post to create custom posts with ACF image field

ACF has documentation for creating a form on the frontend. I would stick to their suggestions. https://www.advancedcustomfields.com/resources/create-a-front-end-form/ I was able to create this by assigning my field group for the form to the custom post type and using a unique template page for the form. <?php /** * Template Name: Form Page Template */ ?> … Read more

Titles with thumbnails in media library

You need to view the Media Library in “List View” instead of “Grid view”. Look just below the text “Media Library” at the top of the screen for a list icon / grid icon (grid will be selected) and switch to List. Here’s an article that shows a screenshot: https://easywpguide.com/wordpress-manual/media-library/

Uncaught Error: Cannot use object of type stdClass while showing the list using WP_List_Table

$this->items = $this->get_table_data(); If this line is triggering the error, then the reason is probably that items should be an array of arrays, not an array of stdClass objects. But you don’t need to change much, as get_results() does support returning arrays instead of objects (which is the default). Instead of $get_bl_list = $wpdb->get_results(“SELECT * … Read more