Customization – Custom WooCommerce loop with "featured products" works offline but not online. What to do to make it work?

I want to create a product teaser section on my home page (home-page.php). Ideally, this section would act as a carousel. At the moment, however, I am trying to make the following code so that I upload it to my website.

The code I've put together below will be written directly into the "home-page.php" template. It works offline, but for some reason not online (does not appear at all).

Any ideas on how I can do this job? Any help appreciated!

4 & # 39; # 39 & post_type; => & # 39; product & # 39 ;, "post_status" => "Publish", & # 39; # 39 & tax_query; => array ( Array ( & # 39; taxonomy & # 39; => & # 39; product_visibility & # 39 ;, & # 39; field & # 39; => & # 39; name & # 39 ;, & # 39; terms & # 39; => & # 39; marked & # 39 ;, & # 39; operator & # 39; => & # 39; IN & # 39 ;, ) ) ); $ featured_product = new WP_Query ($ product_args); if ($ featured_product-> have_posts ()): Echo & # 39;
    & # 39 ;; while ($ featured_product-> have_posts ()): $ featured_product-> the_post (); global $ product;?> "Name"))); ?>
  • <a href = "">
    <img class = "ml-auto mr-auto" src = "http://wordpress.stackexchange.com/"old ="">

    <? php echo $ maerke. "
    ";?>

  • <? php endtime; Echo & # 39;
& # 39 ;; endif; wp_reset_query ();?>

Do these new "featured content" influence your Internet traffic?

Do these new "featured content" also meet your web rankings?

It seems Google is indexing our websites,
Scrapping our content
and on your own website.

Complete answers to various questions are posted there …
If people get answers right on Google's website, who would come to our website?
SEMrush

We are the ones who created this content, pay for servers and other services,
and his google getting traffic …

Yesterday I searched for color codes,
and a whole list of colors was directly available on the Google search result itself.
they scrapped from another website …
I did not even want to look at the website where the current list was …
Why should I? I received the answer on the website of Google itself …
Why are others interested in our websites?

Is not this a "copyright infringement"?

I think Google bot completely blocked from my website. But am really confused at this point. Suggestions are welcome. It is the stock market website in my signature. Google Traffic has made good money, but since I installed SSL (2 months ago), my ranking has dropped, but I do not think that's the only reason for lower revenues. I think that this is "highlighted content" across all search results, which is simply "scratched" by our websites … People get answers directly to Google itself. Why do they click a link and come to our website?