Is there a way to get Gutenberg interface on a Custom Post Type without supporting block editor?
Is there a way to get Gutenberg interface on a Custom Post Type without supporting block editor?
Is there a way to get Gutenberg interface on a Custom Post Type without supporting block editor?
Yes, you can. You would need to add a custom field that would store the ID of other post type. I would recommend using a select list. You could try something along these lines: add_action( ‘add_meta_boxes’, ‘wpse_143600_add_box’ ); add_action( ‘save_post’, ‘143600_save_box’ ); //create the metabox function wpse_143600_add_box() { add_meta_box( ‘related_testimonial’, __( ‘Testimonails’, ‘wpse_143600_translation’ ), ‘wpse_143600_testimonial_box’, … Read more
Through trial and error I was able to get this working reliably without further hooks or using JavaScript in the Editor. After restoring the hook, I added clean_post_cache($post_id); Separately, I updated the order of priority (from 10 to 5) for the original action. The code in the original question has been updated to reflect this.
Sortable admin columns ordering from custom fields isn’t combine com search and Dropdown filter
Ok, after a bunch of stabbing in the dark, I have successfully added a link to the Appearance >> Header admin screen: and, when clicked on, the link triggers a jquery .post() ajax request that calls a function in my main plugin file. I am going to share a basic example of what I did … Read more
The tables are built with WP_List_Table class, but can be re-built visually (no ordering/filtering built in) by copying html. The post list and the posts edit screens for custom post types will be the standard UI – its your metaboxes that will require some manual copying of WordPress styles. There’s these site and project that … Read more
You’re unable to delete just one category because it’s your default category. You may change the default category via via wp-admin > Settings > Writing > “Default Post Category” .
The closest Thing in WordPress would be a custom meta box with repeatable fields. So to do that you would need create a a metabox using add_meta_box and if you look at this link you will also see an example of saving the custom fields in your meta box. here is an example on a … Read more
Search box for hierarchical taxonomies in admin interface
I did this for my product tags, so you just need to change the reference to product_tag and product to post_tag and post. You are basically making the taxonomy of post_tag hierarchical. You will need to add it to your functions.php: //Make Product Tag Hierarchical function wd_hierarchical_tags_register() { // Maintain the built-in rewrite functionality of … Read more