Christina
Forum Replies Created
-
Forum: Plugins
In reply to: [Post Types Order] Updated to latest and it stopped workingI upgraded again just now and it’s working fine. I’m marking as resolved.
Forum: Plugins
In reply to: [Post Types Order] Updated to latest and it stopped workingThanks! All the settings for the CPTs, pages, etc, are set up and when the new version is installed, I can’t reorder the pages and there’s no drag and drop handle.
Forum: Plugins
In reply to: [Post Types Order] Updated to latest and it stopped workingI rolled back to 2.4.1 and it’s working again. I’m on a local set up with the latest WP.
Oh well, I guess I’m not explaining this correctly. How can I only load my css when there’s a popup? Is there an action hook that I can use, otherwise I don’t know where a client will add a popup so I’m loaded unnecessary CSS on the entire site.
Yes, but I only want to load my styles on pages that have popups, not for the entire site. I can’t tell what page has a pop up or not via php, but I see that your css only loads on those pages, so I’m asking where is the action hook to do this with the custom styles.
Forum: Plugins
In reply to: [Advanced Custom Fields: Extended] “Archive page” with Gutenberg editorTo get around this, I made a private custom post type called Global Blocks. I create my custom “archive” then I get the blocks from that ID in a conditional for the CPT archive. I use a shortcode to do this, so in the conditional I just call that.
add_shortcode( 'global-block', 'global_blocks_shortcode' ); /** * Global Blocks Shortcode * [global-block id="1234"] */ function global_blocks_shortcode( $atts ) { $output = $class = ''; global $post; $atts = shortcode_atts( array( 'id' => '', ), $atts ); $id = $atts['id']; if ( get_post_status( $id ) ) // check if ID exists if( $id ) : /////////////////////// check if ID is on the shortcode $content = get_post( $id ); if ( has_blocks( $content->post_content ) ) : $blocks = parse_blocks( $content->post_content ); foreach( $blocks as $block ) : $output .= do_shortcode( render_block( $block ) ); endforeach; endif; $status = get_post_status( $id ); //don't output draft mode if ( $status != 'publish' ) : $output = ''; endif; endif; //if $id; ///////////////// return $output; }I did that and saved. All the tables are still there. This is confirmed by Flywheel tech support, the tables remain in spite of having that box UNchecked.
- This reply was modified 3 years, 8 months ago by Christina.
Forum: Plugins
In reply to: [WP Visitor Statistics (Real Time Traffic)] Flooded with PHP warningsNever got back to anyone.
A bunch of orange tables flash above the edit screen (gutenberg) and then disappear before I can take a screenshot or copy.
I rb to 2.0.5.
Thanks!
- This reply was modified 5 years, 9 months ago by Christina.
Forum: Plugins
In reply to: [Radio Buttons for Taxonomies] Error with ACF quick edit fields pluginThank you so much!
It doesn’t go missing now.
Forum: Plugins
In reply to: [Disable Gutenberg] Filter use_block_editor_for_post_type to falseOkay. Sorry about that.
Forum: Plugins
In reply to: [Disable Gutenberg] Filter use_block_editor_for_post_type to falseI might be confused, but this function
gutenberg_can_edit_post_typeI can only locate in the Gutenberg plugin and not in the WP Core. I just searched a fresh download of the directory to be sure. I find the same function inside WooCommerce but it’s a public function, but this site I’m working on doesn’t have Woo installed.public static function gutenberg_can_edit_post_type( $can_edit, $post_type ) { return 'product' === $post_type ? false : $can_edit; }Forum: Plugins
In reply to: [Disable Gutenberg] Filter use_block_editor_for_post_type to falseThanks all. I noticed when I played around that I cannot selectively choose whether or not to use Gutenburg on various CPTS, I can just click the entire site checkbox and that works. Here’s some notes referring classic-editor.php file in this plugin.
if (!defined('ABSPATH')) exit; function disable_gutenberg_remove() { $gutenberg = function_exists('gutenberg_can_edit_post_type'); // I can only find this in the Gutenberg plugin $block_editor = has_action('enqueue_block_assets'); if (!$gutenberg && $block_editor === false) return; if ($block_editor) { //add_filter('use_block_editor_for_post_type', '__return_false', 100, 2); // this doesn't work add_filter( 'use_block_editor_for_post_type', '__return_false' ); //this works } // with WP 5.2.2 this doesn't work (I don't think it worked earlier, except with the plugin). if ($gutenberg) { add_filter('gutenberg_can_edit_post_type', '__return_false', 100, 2); disable_gutenberg_hooks(); } }Forum: Plugins
In reply to: [Radio Buttons for Taxonomies] 2.0 has duplicate meta boxes, 1.8.3 does notIt works! Thank you so much.
Their plugin “supposedly” allows you to select which post types and roles you want to use Gutenberg with, it has never worked since I last tested when playing around. The thing only works if you just disable Gutenberg entirely.
I was just about to send a support request, I see you got there already.