Tag Info

New answers tagged

0

This is theoretically possible. While there is no explicit way to do this in post insert/update process, all queries go through query filter before being run on database. Practically this is a no go. The level of complexity in WP's handling of post querying is incomprehensible and full of edge cases. There is no easy telling how much would break over ...


1

first you should set the taxnomy in custom post type you have just set only for post title post content post comments you did not set for custom taxnomy $post = array('tax_input' => [ array( <taxonomy> => <array | string> ) ] // For custom taxonomies. Default empty. 'page_template' => [ <string> ] // Requires name of ...


0

Thanks to @Chinmoy Kumar Paul for his amazing help last night and for setting me on the right track. The issue was that because the code was being run inside an AJAX results DIV, Wordpress couldn't locate the ID correctly. It was necessary to post the data using AJAX too and this works fine. For anyone else looking to implement AJAX front-end posting - I ...



Top 50 recent answers are included