next_/previous_post_link() `in_same_category` appears to fail when true
next_/previous_post_link() `in_same_category` appears to fail when true
next_/previous_post_link() `in_same_category` appears to fail when true
Lost of query parameter when using permalink
A possible solution is to use jquery to show/hide your custom field, something like this: <script> jQuery(document).ready(function($) { $(‘#yourcheckboxidentifier’).click(function() { $(‘#customfieldidentifier’).fadeToggle(400); }); if ($(‘#yourcheckboxidentifier’).val() !== undefined) { $(‘#customfieldidentifier’).show(); } }); </script>
You could try what wp-cron.php does and set in your AJAX handler: ignore_user_abort(true); But this might cause other problems, for example when the API takes an hour to respond. 🙂 Try to log all API response time for while to see if that is really the problem.
I eventually muscled my way through it. The first thing I did was manually activated the plugin via the database. Next I went back to the subsite to verify that the plugin was activated. It was not. So I tried activating again. Now I was getting an error in relation to memory being exhausted. This … Read more
Sitemap generation
Fields for different parts of a page
Assuming you can get all your CPT data in a .csv file, you should be able to write a function that can import it. I have done this for bringing in user tables and/or custom posts when clients migrate from an existing site or software. Here is some example code. You could run this as … Read more
Alright, You can just hook into the filter pre_get_posts and check is_admin. Put this in your theme or plugin: function wpse_81939_post_types_admin_order( $wp_query ) { if (is_admin()) { // Get the post type from the query $post_type = $wp_query->query[‘post_type’]; if ( $post_type == ‘Videos’) { $wp_query->set(‘orderby’, ‘date’); $wp_query->set(‘order’, ‘DESC’); } } } add_filter(‘pre_get_posts’, ‘wpse_81939_post_types_admin_order’); I also … Read more
Set Custom Post Type in Widget Settings for use in Widget