FSE Change Post Template to Something Other Than a List

The ul/li tags are hard-coded into the render_block_core_post_template() functíon: $content=””; while ( $query->have_posts() ) { $query->the_post(); $block_content = ( new WP_Block( $block->parsed_block, array( ‘postType’ => get_post_type(), ‘postId’ => get_the_ID(), ) ) )->render( array( ‘dynamic’ => false ) ); $content .= “<li>{$block_content}</li>”; } wp_reset_postdata(); return sprintf( ‘<ul %1$s>%2$s</ul>’, $wrapper_attributes, $content ); See here: https://github.com/WordPress/wordpress-develop/blob/bed9d00fbdac9da08ed13e84186c53a686a1ea78/src/wp-includes/blocks/post-template.php#L69 There would … Read more

WordPress function::: get_header();

No, because get_header() calls locate_template() with load_once = true, meaning the actual template PHP is included with require_once if ( $load_once ) { require_once $_template_file; } else { require $_template_file; } so the second time you call it it won’t load anything, as it’s already loaded the same file before. This makes sense for header … Read more

Twenty Twenty-Four Theme, where to put the personalized CSS style rules?

YES (finally).. The specific answer for this template I found in a WP forum was a bit misleading, which took me hours lost searching for what they meant. So: The section for personalized CSS styles is located directly in “Twenty Twenty-Four” Theme Editor, just go: Appearance (themes); Editor (site-editor); Left Menu -> Styles (wp_global_styles); Up … Read more

Disable creating sort index SELECT post_modified_gmt

Searching on Google for the mentioned query, I believe your assumption that it is coming from WordPress is correct. This ticket can be found at https://core.trac.wordpress.org/ticket/31171. In my opinion, you should check what requests are coming to your website and block bad bots/users who are making multiple requests (based on that ticket, probably you have … Read more

How to add translation for FSE theme?

Could you please cross check lexiadesign is the correct Text Domain of your FSE theme. Agter this you can use given functions for Internationalization of Strings of your theme or plugin. esc_html__() : This is used to translate and escape HTML attributes. For Ex. <?php echo esc_html__(‘Download Lexia’, ‘your-theme-textdomain’); ?> esc_html_e() : This is used … Read more