Parse error : syntax error, unexpected ‘)’ in

You have a missing closing bracket on your params parameter on the array_merge(). It should look like this: return array( ‘name’ => __(‘Custom Fields’, ‘thegem’), ‘base’ => ‘gem_custom_fields’, ‘icon’ => ‘thegem-icon-wpb-ui-custom-fields’, ‘category’ => __(‘TheGem’, ‘thegem’), ‘description’ => __(‘Custom Fields’, ‘thegem’), ‘params’ => array_merge( /* General – Layout */ thegem_cf_set_layout_params(), /* General – Styles */ thegem_cf_set_style_params(), … Read more

How to show custom post type in all post section?

It seems pretty hacky, but this does work in my testing (I tested with built-in page post type): // Change the post list and search query. add_action( ‘pre_get_posts’, static function ( $query ) { if ( ! is_admin() || ! $query->is_main_query() ) { return; } if ( ! in_array( $query->get( ‘post_type’ ), array( ‘post’, ‘Array’ … Read more

tech