get_the_excerpt doesn’t work with default items but works with my customs post types

the excerpt function not work in my custom post template using WordPress default posts in the query loop, but they work fine with custom post type.

I enabled the display of excerpt by checking the "excerpt" option in the post options fields.

I also added "add_post_type_support(‘page’ ‘excerpt’)" in my function.php file but it doesn’t working.

I suspect a problem coming from the database because the excerpts are displayed when I test the website locally with Xampp.

Here is a snippet of the code used in my page template:

<div class="container">                      <div class="row">                         <div class="col-lg-9 col-mg-9 mp-blog" style="padding-right: 24px;">                                                 <div class="row">                                  <?php                                 $  paged = (get_query_var('paged')) ? get_query_var('paged') : 1;                                  $  args = array(                                   'post_type'=>'post', // Your post type name                                   'posts_per_page' => 6,                                   'cat' => 26,                                   'paged' => $  paged,                                 );                                                                  $  loop = new WP_Query( $  args );                         if ( $  loop->have_posts() ) {                             while ( $  loop->have_posts() ) : $  loop->the_post();?>                        <?php the_excerpt();?>                        <?php endwhile;                              $  total_pages = $  loop->max_num_pages;      if ($  total_pages > 1){          $  current_page = max(1, get_query_var('paged'));     ?>     <div class="custom_pagination">        <?php         echo paginate_links(array(             'base' => get_pagenum_link(1) . '%_%',             'format' => '/page/%#%',             'current' => $  current_page,             'total' => $  total_pages,             'prev_text'    => __('« précédent'),             'next_text'    => __('suivant »'),         ));?>     </div>     <?php }     } wp_reset_postdata();?>                     </div>                 </div><!-------------- end of col-8 ------------------>               <div class="col-lg-3 col-mg-3" style="padding: 0;">                   <div id="tching" class="blog_right_sidebar" style="padding: 0 15px;">                       <?php get_sidebar(); ?>                   </div>               </div>             </div>          </div> 

GraphicsGrid $\to$ Beep “The shared stylesheet “Stylesheet-review-topics.nb” could not be \ found. The default stylesheet will be used instead.”

12.0.0 for Microsoft Windows (64-bit) (April 6, 2019)

I have a notebook in which using GraphicsGrid causes a beep "The shared stylesheet "Stylesheet-review-topics.nb" could not be found. The default stylesheet will be used instead."

I copied the entire content of the notebook to a new one, set the style sheet to the one shown, and saved over the original notebook. Same thing happens. I created a new notebook and set the style sheet to the one shown, and it does not beep. My notebooks are fairly large, and I really don’t want to spend a lot of time untangling what amounts to a nuisance. I also doing like being annoyed.

This kind of think happens from time to time, and I’m never sure why. Any ideas?

Prevent block editor from adding overlap by default to columns

When I create a new columns block, the editor adds the overlap option by default, so the class “is-style-twentytwentyone-columns-overlap” gets added.

I do not want this, but I can’t seem to get rid of it although the class is not in my inc/block-patterns.php file.

I’m using a created child theme for Twenty Twenty One theme.

I also tried to unregister the block style with custom js file:

wp.domReady(() => {     wp.blocks.unregisterBlockStyle('core/columns', 'twentytwentyone-columns-overlap'); } ); 

Here I can not see the option anymore to choose it, but when creating new columns it’s still added by default.

Any idea on how to get the columns without overlap by default please?

For dynamically batched objects the `unity_ObjectToWorld` shader variable is always set to default?

I’m using the standard render pipeline and the unity_ObjectToWorld variable for some calculations in my shader. After I enabled dynamic batching these calculations got broken. It seems that unity_ObjectToWorld is set to default when the objects are being batched. Is it by design? I didn’t find anything in the documentation.

Default Post post type and custom post type rewrite slugs

So, currently, my blog page is at /blog/ and I also have 2 custom post types. What I’m trying to get is to have all the posts/archives of the Post post type show under /blog/, and for one of the custom post type to use "/" as a rewrite slug. That way, I could get mysite.com/service-foo, mysite.com/bar-service, which are the custom post types, and if I go to post archive for December of 2020, it would show under /blog/2020/12/.

I’ve tried that, as I said, by setting /blog/%postname%/ under my wp admin permalink settings, and using 'rewrite' => array( 'slug' => '/', 'with_front' => false ), with register_post_type for my custom post type. That works for blog posts, but my custom post type posts show 404, with proper url though.

Key Lookup isn’t applied by default?

I’m trying to learn about covering indexes. In the Northwind database, I select from the table Categories:

enter image description here

As you can see the table has a non-clustered index on the column CategoryName.

This SQL query:

select CategoryName  from Categories where Categories.CategoryName like 'Beverages' 

returns an execution plan with an index seek:

enter image description here

However, this:

select CategoryName ,Description from Categories where Categories.CategoryName like 'Beverages' 

returns this execution plan with an index scan using the primary key index, which isn’t expected:

enter image description here

I can find the expected behaviour only when I force the query with the non-clustered index:

 select CategoryName ,Description from Categories     with(index(CategoryName))  where Categories.CategoryName like 'Beverages' 

enter image description here

What is the problem?

how to make email optional while user registration using default wordpress form

I wonder if there is any way to make email an optional field while registering using default form. So that those who don’t know mail may leave it blank.

I got code from stackexchange but that doesn’t seems to work.I added code to functions.php under theme folder.

add_action('user_profile_update_errors', 'my_user_profile_update_errors', 10, 3); function my_user_profile_update_errors($  errors, $  update, $  user) {     $  errors->remove('empty_email'); }  add_action('user_new_form', 'my_user_new_form', 10, 1); add_action('show_user_profile', 'my_user_new_form', 10, 1); add_action('edit_user_profile', 'my_user_new_form', 10, 1); function my_user_new_form($  form_type) {     ?>     <script type="text/javascript">     jQuery('#email').closest('tr').removeClass('form-required').find('.description').remove();      <?php if (isset($  form_type) && $  form_type === 'add-new-user') : ?>         jQuery ('#send_user_notification') .removeAttr('checked');     <?php endif; ?>     </script>     <?php } 

Any help is appreciated.Thanks in advance

Reference