It looks to be one of the sanitize_text_field or esc_html calls. That error is telling you that an array is being passed to to rather than the string type it is expecting.
If you look at the error log, you can probably see where the function is being called that is getting the wrong parameter.
Related Posts:
- Query menu_order custom post types
- Custom post status not working
- How do I programmatically add items of content to a custom post type?
- using the_permalink to echo an href into a
- Filter posts with ajax form and checkboxes
- Get custom post type REST API not working
- Get all taxonomies for all post types
- Row actions not showing? Why?
- Displaying custom post type on front page
- Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page
- How to allow “Add New” capability of CPT when links to its UI are placed as a submenu?
- wordpress custom post type remove duplicate menu item
- List terms from Custom Taxonomy
- WP_Query search posts by custom post type and custom taxonomy
- Dynamic Custom Post Type Plugin
- How to filter out post type meta?
- Loop through posts of a custom-post-type (event) and create .ics (iCal) file?
- How to count custom post types with conditional operators
- Using wordpress template tags within an array
- How to display Custom Post Type Post based on Tag with Shortcode Parameter?
- Getting the URL of the parent page
- get_posts of Custom Post Type AND Custom Taxonomy
- Get posts from a custom post type by child categories of a parent category
- If post has custom field then display css-class
- Replace text in post from cvs
- Get parent categories of custom post type
- Query & Order posts by custom fields
- Custom Tag Description unable to display just below and outside of the Loop
- ACF field key/value to show on taxonomy list
- Can one create multiple Custom Post Types with a for loop?
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- How to add custom field to view-edit post type page
- Static apple-app-site-association file with wordpress
- search suggest – filter post type
- Breaking up CPT output into two columns
- Configuring a meta query with multiple post types that have the same relationship on a single page
- Displaying custom field according to date
- Add additional field to custom post_type
- Set featured image to archive.php
- how to echo meta tag in header using php
- Get term name without a foreach loop
- How to add/edit advanced custom fields on custom post type’s WordPress REST API?
- PHP question: how to combine syntax?
- Using wp_localize_script to get data from cpt and pass it to maplace-js locations
- Add first letter of titles to array, then compare arrays
- custom post for slider
- Using wp_query to modify the loop in index.php for a CPT
- Get custom post type categories to show up in menus
- How exclude or skip post type with get_next_post_link
- How do I add custom HTML to the content of an archive page’s posts?
- Create short URL with auto 301 redirect
- Undefined $post in wp_query
- Is it possible to use array_walk() to append terms to an array of posts?
- get_post_types() can’t get some of my post type
- Creating shortcode id for custom post types
- List latest post out of 2 custom post types
- Sets post_parent in custom post type posts automatically based on cpt->page name
- Show the categories the current post has
- Fetch data from two custom post types and create multidimensional array for output to html table
- Create a Dropdown Selector and Redirect for a Custom Taxonomy in WordPress?
- Create an user checklist system for a course plateform using ACF Pro and ACF Extended
- How to display “Trash” in my custom post type?
- How to get the custom post data using post id in WordPress?
- set object terms after some some time of published post – functions.php
- See if the email exists or not
- Why is my custom post content only viewable when signed into WordPress?
- On saving Post My permalink is updated and category is removed automatically which cause the 404
- Query custom post type that has a serialized relational advanced custom field value
- Pagination not working in custom post type. Help
- How to add specific terms in a custom post type?
- Sending current featured image to email
- Plugin Development using classes – Public & Private Callbacks
- Publishing failed. The response is not a valid JSON response
- Limit custom post type to the authors only on front-end!
- WP_Query – How To Query Only Custom Posts With No Children of Their Own?
- programmatically generated custom post type is created more than once
- Dynamic page for nav items used as filters
- How to use posts as tabs in a custom page?
- Accessing download link from the loop with WP Download Manager Pro
- Create posts inside CPT post
- Taxonomies are not showing in the category dropdown
- Combine multiple separate lists into one
- News post with multiple permalinks? When opened from different page
- Custom Taxonomy – fields
- WordPress trying to query two custom types to get child from the parent
- Print post category name from a custom post type wordpress
- CPT post doesnt shows tags and category on backend admin page
- WordPress API only returning HTML
- How to make sure, that only the selected post is changing?
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Get month and day from a Date Picker custom field
- Show Custom Post Type taxonomy term that matches custom field
- Order by custom field attribute
- Select Menu for Custom post Type does not save
- is_singular won’t call my functions?
- Cant we use a PHP file directly like myhome.com/some.php?
- Code in custom widget queries all posts, when it should only query the current post
- Inserting two categories
- Comments are not working on Custom Post Type
- Add Category names to post lists of custom post type