<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Shimanta Das</title>
    <description>The latest articles on Forem by Shimanta Das (@shimanta_microcodes).</description>
    <link>https://forem.com/shimanta_microcodes</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1812708%2Ff7024e64-a923-457b-b7ba-cc61d98a64e7.png</url>
      <title>Forem: Shimanta Das</title>
      <link>https://forem.com/shimanta_microcodes</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/shimanta_microcodes"/>
    <language>en</language>
    <item>
      <title>Smplayer install in fedora linux</title>
      <dc:creator>Shimanta Das</dc:creator>
      <pubDate>Sat, 14 Sep 2024 12:51:50 +0000</pubDate>
      <link>https://forem.com/shimanta_microcodes/smplayer-install-in-fedora-linux-4455</link>
      <guid>https://forem.com/shimanta_microcodes/smplayer-install-in-fedora-linux-4455</guid>
      <description>&lt;p&gt;When it comes to media player which can offline videos in your fedora system or it's origins sub systems, there have many players. Most of the uses VLC as their player. But here I have showcase you, a player called "SMPlayer" which can play the same role like vlc. It's can be a good alternative against vlc. &lt;/p&gt;

&lt;p&gt;Let's see how to install .... &lt;/p&gt;

&lt;p&gt;Step 1: go to official repo and download .rpm file from that.&lt;br&gt;
&lt;a href="https://www.smplayer.info/en/download-linux" rel="noopener noreferrer"&gt;go to website&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 2: Now open terminal and go to downloads folder of your project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnavmrnswtv4zqi6bb0i6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnavmrnswtv4zqi6bb0i6.png" alt="Image description" width="800" height="120"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 3: Now, install via sudo permission.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Command: sudo dnf install smplayer-24.5.0-1.fc34.x86_64.rpm
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb0qy0tbtuxjlarn62t0g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb0qy0tbtuxjlarn62t0g.png" alt="Image description" width="800" height="377"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>linux</category>
      <category>fedora</category>
      <category>redhat</category>
      <category>vlc</category>
    </item>
    <item>
      <title>Ultimate PHP Resource List: Stay Informed and Up-to-Date</title>
      <dc:creator>Shimanta Das</dc:creator>
      <pubDate>Sun, 01 Sep 2024 18:28:29 +0000</pubDate>
      <link>https://forem.com/shimanta_microcodes/ultimate-php-resource-list-stay-informed-and-up-to-date-271b</link>
      <guid>https://forem.com/shimanta_microcodes/ultimate-php-resource-list-stay-informed-and-up-to-date-271b</guid>
      <description>&lt;p&gt;As a PHP developer, staying updated with the latest trends, tools, and best practices is crucial. Whether you specialize in core PHP, WordPress development, Laravel, or another framework, having access to the right resources can make a world of difference in your work. Here are some of the best resources that every PHP developer should bookmark:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;WPBeginner&lt;/strong&gt;
For WordPress developers, WPBeginner is an invaluable resource. It offers tutorials, tips, and tricks for both beginners and advanced users. Whether you need guidance on plugin development or theme customization, WPBeginner has you covered.
website: &lt;a href="https://www.wpbeginner.com/" rel="noopener noreferrer"&gt;https://www.wpbeginner.com/&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdn3tlboyphgeooiq8izf.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdn3tlboyphgeooiq8izf.PNG" alt="Image description" width="800" height="276"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;WPBlog&lt;/strong&gt;
WPBlog provides insights into the latest trends and updates in the WordPress ecosystem. It’s a go-to resource for news, tutorials, and expert advice on everything related to WordPress.
website: &lt;a href="https://wpblog.com/" rel="noopener noreferrer"&gt;https://wpblog.com/&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7eqgbnlsj91s2a2nb7dr.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7eqgbnlsj91s2a2nb7dr.PNG" alt="Image description" width="800" height="326"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;WP Mayor&lt;/strong&gt;
WP Mayor is another excellent resource for WordPress professionals. It covers a wide range of topics, including plugin and theme reviews, tutorials, and industry news. It’s perfect for developers looking to stay informed about the latest WordPress products and services.
website: &lt;a href="https://wpmayor.com/" rel="noopener noreferrer"&gt;https://wpmayor.com/&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs18br8247ptuxhfar2o7.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fs18br8247ptuxhfar2o7.PNG" alt="Image description" width="800" height="277"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Laravel News&lt;/strong&gt;
For those working with Laravel, Laravel News is a must-follow. It delivers the latest news, tutorials, and package releases in the Laravel community. The site also features interviews with prominent Laravel developers, providing insights into best practices and industry trends.
website: &lt;a href="https://laravel-news.com/" rel="noopener noreferrer"&gt;https://laravel-news.com/&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8dksqs6hps4xyxup9228.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8dksqs6hps4xyxup9228.PNG" alt="Image description" width="800" height="348"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Laracasts&lt;/strong&gt;
Laracasts is the ultimate learning platform for Laravel developers. With a vast library of video tutorials covering everything from the basics to advanced topics, Laracasts is a fantastic resource for continuous learning and mastering Laravel.
website: &lt;a href="https://laracasts.com/" rel="noopener noreferrer"&gt;https://laracasts.com/&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftblc5y68ai5ceh7f2ubl.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftblc5y68ai5ceh7f2ubl.PNG" alt="Image description" width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Laravel Daily&lt;/strong&gt;
Laravel Daily offers daily tips, tutorials, and news specifically tailored to Laravel developers. It’s a great way to stay up-to-date with the latest Laravel trends and techniques, ensuring you’re always ahead of the curve.
website: &lt;a href="https://laraveldaily.com/" rel="noopener noreferrer"&gt;https://laraveldaily.com/&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpka6pzrqep35x5sivp8c.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpka6pzrqep35x5sivp8c.PNG" alt="Image description" width="800" height="376"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;It’s FOSS&lt;/strong&gt;
For developers interested in open-source technology, It’s FOSS is a comprehensive resource. It covers everything related to free and open-source software, including news, tutorials, and reviews. It’s an excellent source of information for developers who want to explore the wider open-source ecosystem.
website: &lt;a href="https://itsfoss.com/" rel="noopener noreferrer"&gt;https://itsfoss.com/&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcvq14itc4cjm70tzdvu2.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcvq14itc4cjm70tzdvu2.PNG" alt="Image description" width="800" height="375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I hope this expanded list provides you with more valuable resources for your PHP development journey. Please let me know if you have any other questions or if there's anything else you'd like me to help you with.&lt;/p&gt;

&lt;p&gt;👉 My Social Media links&lt;br&gt;
🤹‍♂️Linkedin: &lt;a href="https://www.linkedin.com/in/shimanta-das-497167223" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/shimanta-das-497167223&lt;/a&gt;&lt;br&gt;
👹facebook : &lt;a href="https://www.facebook.com/profile.php?id=100078406112813" rel="noopener noreferrer"&gt;https://www.facebook.com/profile.php?id=100078406112813&lt;/a&gt;&lt;br&gt;
📸Instagram : &lt;a href="https://www.instagram.com/meshimanta/?hl=en" rel="noopener noreferrer"&gt;https://www.instagram.com/meshimanta/?hl=en&lt;/a&gt;&lt;br&gt;
🐦Twitter : &lt;a href="https://mobile.twitter.com/Shimantadas247" rel="noopener noreferrer"&gt;https://mobile.twitter.com/Shimantadas247&lt;/a&gt;&lt;br&gt;
📬Telegram link : &lt;a href="https://t.me/microcodesofficial" rel="noopener noreferrer"&gt;https://t.me/microcodesofficial&lt;/a&gt;&lt;br&gt;
🎦Youtube : &lt;a href="https://youtube.com/channel/UCrbf6B0CU9x-I4bQOYbJVGw" rel="noopener noreferrer"&gt;https://youtube.com/channel/UCrbf6B0CU9x-I4bQOYbJVGw&lt;/a&gt;&lt;/p&gt;

</description>
      <category>php</category>
      <category>wordpress</category>
      <category>laravel</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Happy birthday #linux</title>
      <dc:creator>Shimanta Das</dc:creator>
      <pubDate>Sun, 25 Aug 2024 17:37:37 +0000</pubDate>
      <link>https://forem.com/shimanta_microcodes/happy-birthday-linux-3g87</link>
      <guid>https://forem.com/shimanta_microcodes/happy-birthday-linux-3g87</guid>
      <description>&lt;p&gt;&lt;strong&gt;33 years ago&lt;/strong&gt;, Torvalds announced the Linux project 🐧&lt;br&gt;
&lt;strong&gt;"Just a hobby, won't be big and professional"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Linus Torvalds&lt;/strong&gt; is a Finnish-American software engineer renowned for creating the Linux kernel, the core component of the widely used Linux operating system. He is often referred to as the "father of Linux."&lt;br&gt;
Below image of linus ... &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz2jl3o30br7trylqlc8c.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz2jl3o30br7trylqlc8c.jpg" alt="Image description" width="800" height="506"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here's a list of some memorable quotes by Linus Torvalds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Software is like sex: it's better when it's free."&lt;/li&gt;
&lt;li&gt;"In real open source, you have the right to control your own destiny."&lt;/li&gt;
&lt;li&gt;"A computer is like air conditioning—it becomes useless when you open Windows."&lt;/li&gt;
&lt;li&gt;"I'm motivated by the fact that people depend on me and Linux. But the kernel is only as good as it is because of a lot of people working together."&lt;/li&gt;
&lt;li&gt;"I'm basically a very lazy person who likes to take credit for things other people actually do."&lt;/li&gt;
&lt;li&gt;"Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program."&lt;/li&gt;
&lt;li&gt;"Bad programmers worry about the code. Good programmers worry about data structures and their relationships."&lt;/li&gt;
&lt;li&gt;"Perfection is reached not when there is nothing left to add, but when there is nothing left to take away."&lt;/li&gt;
&lt;li&gt;"Talk is cheap. Show me the code."&lt;/li&gt;
&lt;li&gt;"I don't ask for much, just competence."&lt;/li&gt;
&lt;li&gt;"If you need more than three levels of indentation, you're screwed anyway, and should fix your program."&lt;/li&gt;
&lt;li&gt;"I am not a visionary. I'm an engineer."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Follow me!&lt;br&gt;
👉 My Social Media links&lt;br&gt;
🤹‍♂️Linkedin: &lt;a href="https://www.linkedin.com/in/shimanta-das-497167223" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/shimanta-das-497167223&lt;/a&gt;&lt;br&gt;
👹facebook : &lt;a href="https://www.facebook.com/profile.php?id=100078406112813" rel="noopener noreferrer"&gt;https://www.facebook.com/profile.php?id=100078406112813&lt;/a&gt;&lt;br&gt;
📸Instagram : &lt;a href="https://www.instagram.com/meshimanta/?hl=en" rel="noopener noreferrer"&gt;https://www.instagram.com/meshimanta/?hl=en&lt;/a&gt;&lt;br&gt;
🐦Twitter : &lt;a href="https://mobile.twitter.com/Shimantadas247" rel="noopener noreferrer"&gt;https://mobile.twitter.com/Shimantadas247&lt;/a&gt;&lt;br&gt;
📬Telegram link : &lt;a href="https://t.me/microcodesofficial" rel="noopener noreferrer"&gt;https://t.me/microcodesofficial&lt;/a&gt;&lt;br&gt;
🎦Youtube : &lt;a href="https://youtube.com/channel/UCrbf6B0CU9x-I4bQOYbJVGw" rel="noopener noreferrer"&gt;https://youtube.com/channel/UCrbf6B0CU9x-I4bQOYbJVGw&lt;/a&gt;&lt;/p&gt;

</description>
      <category>linux</category>
      <category>ubuntu</category>
      <category>redhat</category>
      <category>kalilinux</category>
    </item>
    <item>
      <title>Show products related to category ~ WooCommerce</title>
      <dc:creator>Shimanta Das</dc:creator>
      <pubDate>Sun, 25 Aug 2024 14:26:34 +0000</pubDate>
      <link>https://forem.com/shimanta_microcodes/show-products-related-to-category-woocommerce-g6c</link>
      <guid>https://forem.com/shimanta_microcodes/show-products-related-to-category-woocommerce-g6c</guid>
      <description>&lt;p&gt;&lt;strong&gt;Woocommerce&lt;/strong&gt; is a awesome plugin, when building an e-commerce website for yourself and clients. We can use woocommerce with various popular themes. If you want to build your custom e-commerce website, then you can also use woocommerce template pages. From developer prospective, if you want to &lt;strong&gt;show products(post_type=’product’) related to any specific category&lt;/strong&gt; , then below the below code reference. &lt;/p&gt;

&lt;p&gt;This is an sample HTML section, where I would show latest products related to category ‘mobiles’.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0j0v7caltitgbbjivnti.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0j0v7caltitgbbjivnti.PNG" alt="Image description" width="800" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In my woocommerce these are some categories. These are mobiles, decor, accessories etc.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkk5fosc9fmnywaam76pd.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkk5fosc9fmnywaam76pd.PNG" alt="Image description" width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, lets see about category(taxonomy) ‘Mobiles’. Here category name is ‘Mobiles’ and slug is ‘mobiles’. products related to this category from wp-admin here. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhxv3fb1p83susooo6819.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhxv3fb1p83susooo6819.PNG" alt="Image description" width="800" height="327"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, let’s see below code about how to render all the products related to taxonomy slug ‘mobiles’.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php
$category_slug = 'mobiles';

// Query the posts in the specific category
$args = array(
            'post_type' =&amp;gt; 'product',
            'posts_per_page' =&amp;gt; 4,
            'order_by' =&amp;gt; 'date',
            'tax_query' =&amp;gt; array(
                array(
                    'taxonomy' =&amp;gt; 'product_cat', // Change to 'category' for regular blog posts
                    'field' =&amp;gt; 'slug',
                    'terms' =&amp;gt; $category_slug,
                ),
            ),
        );

$query = new WP_Query($args);
if ($query-&amp;gt;have_posts()) {
    while ($query-&amp;gt;have_posts()) {
        $query-&amp;gt;the_post();
        $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');

        $categories = get_the_terms(get_the_ID(), 'product_cat');
        if ($categories &amp;amp;&amp;amp; !is_wp_error($categories)) {
            foreach ($categories as $category) {
                $product_category = $category-&amp;gt;name;
            }
        }

    }
}
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is the below output for this … &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2zjji1jx2qbnal4dcm7b.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2zjji1jx2qbnal4dcm7b.PNG" alt="Image description" width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Follow me !! &lt;br&gt;
👉 My Social Media links&lt;br&gt;
🤹‍♂️Linkedin: &lt;a href="https://www.linkedin.com/in/shimanta-das-497167223" rel="noopener noreferrer"&gt;https://www.linkedin.com/in/shimanta-das-497167223&lt;/a&gt;&lt;br&gt;
👹facebook : &lt;a href="https://www.facebook.com/profile.php?id=100078406112813" rel="noopener noreferrer"&gt;https://www.facebook.com/profile.php?id=100078406112813&lt;/a&gt;&lt;br&gt;
📸Instagram : &lt;a href="https://www.instagram.com/meshimanta/?hl=en" rel="noopener noreferrer"&gt;https://www.instagram.com/meshimanta/?hl=en&lt;/a&gt;&lt;br&gt;
🐦Twitter : &lt;a href="https://mobile.twitter.com/Shimantadas247" rel="noopener noreferrer"&gt;https://mobile.twitter.com/Shimantadas247&lt;/a&gt;&lt;br&gt;
📬Telegram link : &lt;a href="https://t.me/microcodesofficial" rel="noopener noreferrer"&gt;https://t.me/microcodesofficial&lt;/a&gt;&lt;br&gt;
🎦Youtube : &lt;a href="https://youtube.com/channel/UCrbf6B0CU9x-I4bQOYbJVGw" rel="noopener noreferrer"&gt;https://youtube.com/channel/UCrbf6B0CU9x-I4bQOYbJVGw&lt;/a&gt;&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>woocommerce</category>
      <category>php</category>
      <category>coding</category>
    </item>
    <item>
      <title>Enqueue CSS and JS Scripts in WordPress for Better Performance</title>
      <dc:creator>Shimanta Das</dc:creator>
      <pubDate>Wed, 21 Aug 2024 17:45:57 +0000</pubDate>
      <link>https://forem.com/shimanta_microcodes/enqueue-css-and-js-scripts-in-wordpress-for-better-performance-32ao</link>
      <guid>https://forem.com/shimanta_microcodes/enqueue-css-and-js-scripts-in-wordpress-for-better-performance-32ao</guid>
      <description>&lt;p&gt;&lt;strong&gt;WordPress&lt;/strong&gt; is open-source software – users can install, modify, and distribute it however they want. Since the source code is accessible to everyone, millions of WordPress experts and developers can create tools and extensions and share them with the public.&lt;/p&gt;

&lt;p&gt;Let’s see how to enqueue CSS and JS files into your &lt;strong&gt;wordpress&lt;/strong&gt; project. &lt;/p&gt;

&lt;p&gt;Most of the fresher developer do like,&lt;/p&gt;

&lt;p&gt;Inside &lt;strong&gt;“header.php”&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;?php echo get_bloginfo(); ?&amp;gt;&amp;lt;/title&amp;gt;
    &amp;lt;meta charset="utf-8"&amp;gt;
    &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;link href="&amp;lt;?php echo get_template_directory_uri(); ?&amp;gt;/assets/css/bootstrap.min.css" rel="stylesheet"&amp;gt;
    &amp;lt;link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet"&amp;gt;
    &amp;lt;link href="&amp;lt;?php echo get_template_directory_uri(); ?&amp;gt;/assets/css/custom.css" rel="stylesheet" type="text/css"&amp;gt;

    &amp;lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="&amp;lt;?php echo get_template_directory_uri(); ?&amp;gt;/assets/js/bootstrap.bundle.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="&amp;lt;?php echo get_template_directory_uri(); ?&amp;gt;/assets/js/font-awesome-all.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="&amp;lt;?php echo get_template_directory_uri(); ?&amp;gt;/assets/js/custom.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Inside &lt;strong&gt;“footer.php”&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;footer&amp;gt;
    &amp;lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="&amp;lt;?php echo get_template_directory_uri(); ?&amp;gt;/assets/js/bootstrap.bundle.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="&amp;lt;?php echo get_template_directory_uri(); ?&amp;gt;/assets/js/font-awesome-all.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;script src="&amp;lt;?php echo get_template_directory_uri(); ?&amp;gt;/assets/js/custom.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/footer&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But, this is not the proper way to enqueue CSS and JS files inside your wordpress project. For docking that, first go to your “functions.php” file and enqueue files like this way. Let’s see the sigma trick….&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: functions.php&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function my_theme_enqueue_styles_scripts() {
    // Enqueue CSS files
    wp_enqueue_style('bootstrap-css', get_template_directory_uri() . '/assets/css/bootstrap.min.css');
    wp_enqueue_style('aos-css', 'https://unpkg.com/aos@2.3.1/dist/aos.css');
    wp_enqueue_style('custom-css', get_template_directory_uri() . '/assets/css/custom.css');

    // Enqueue default Jquery in wordpress.
    wp_enqueue_script('jquery');

    wp_enqueue_script('bootstrap-js', get_template_directory_uri() . '/assets/js/bootstrap.bundle.min.js', array('jquery'), null, true);
    wp_enqueue_script('font-awesome-js', get_template_directory_uri() . '/assets/js/font-awesome-all.min.js', array(), null, true);
    wp_enqueue_script('custom-js', get_template_directory_uri() . '/assets/js/custom.js', array('jquery'), null, true);
}
add_action('wp_enqueue_scripts', 'my_theme_enqueue_styles_scripts');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note: &lt;strong&gt;Wordpress&lt;/strong&gt; provides an &lt;strong&gt;uncompressed version of jquery&lt;/strong&gt;. So we can simply use that jquery inside the js files which are required! For that you simply pass the &lt;strong&gt;array('jquery')&lt;/strong&gt; parameter inside “wp_eneueue_script” . One thing to remember is that JQuery has 2 major versions: uncompressed and compressed. Inside the uncompressed version, AJAX will not work properly. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Now inside “header.php”&lt;/strong&gt;&lt;br&gt;
Now, we need to use wp_head(); function under &lt;/p&gt; tags.&lt;br&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;&amp;lt;?php echo get_bloginfo(); ?&amp;gt;&amp;lt;/title&amp;gt;
    &amp;lt;meta charset="utf-8"&amp;gt;
    &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&amp;gt;
    &amp;lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&amp;gt;
    &amp;lt;?php wp_head(); ?&amp;gt;
&amp;lt;/head&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Step 3: Now inside “footer.php”&lt;/strong&gt;&lt;br&gt;
Now, we need to use wp_footer(); under the  tag.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php wp_footer(); ?&amp;gt;
&amp;lt;/body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Including &lt;strong&gt;wp_head()&lt;/strong&gt; and &lt;strong&gt;wp_footer()&lt;/strong&gt; in your WordPress theme is crucial. These &lt;strong&gt;functions automatically insert essential scripts, styles, and metadata required by WordPress, themes, and plugins&lt;/strong&gt;, ensuring proper functionality, compatibility, and performance. wp_head() adds necessary elements within the &lt;strong&gt;&lt;/strong&gt; section for &lt;strong&gt;SEO&lt;/strong&gt;, while wp_footer() includes scripts at the end to defer non-critical JavaScript, improving page load speed. These functions are vital for plugin integration and dynamic theme customizations, as well as the correct placement of analytics and tracking codes.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>php</category>
      <category>performance</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Custom Mailchimp Integration: A Guide for WordPress and Laravel</title>
      <dc:creator>Shimanta Das</dc:creator>
      <pubDate>Wed, 21 Aug 2024 01:48:00 +0000</pubDate>
      <link>https://forem.com/shimanta_microcodes/custom-mailchimp-integration-a-guide-for-wordpress-and-laravel-4dla</link>
      <guid>https://forem.com/shimanta_microcodes/custom-mailchimp-integration-a-guide-for-wordpress-and-laravel-4dla</guid>
      <description>&lt;p&gt;Mailchimp helps small businesses do big things, with the right tools and guidance every step of the way. We’ve got everything you need to create multichannel campaigns that reach and resonate with your people.&lt;br&gt;
When you are building a wordpress website, newsletter subscription is an important part. This section basically exists in the footer area. &lt;/p&gt;

&lt;p&gt;For integrating the newsletter section inside the wordpress site, one of the best providers is “MailChimp”. For integrating mailchimp service as newsletter into wordpress , we mostly use the plugin “MC4WP: Mailchimp for WordPress”. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2g2773n2yrzivqi86nxb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2g2773n2yrzivqi86nxb.png" alt="Image description" width="654" height="111"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But here I will show you how you can custom mailchimp newsletter using PHP and Curl. &lt;/p&gt;

&lt;p&gt;Step 1: Create an account on mailchimp and generate an api key for yourself. You can visit account on “&lt;a href="https://admin.mailchimp.com/account/api/%E2%80%9D" rel="noopener noreferrer"&gt;https://admin.mailchimp.com/account/api/”&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp62fyyfpm8uval52rxqr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp62fyyfpm8uval52rxqr.png" alt="Image description" width="800" height="287"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 2: Now go to your wordpress project, and go to your HTML newsletter section which you will integrate with the wordpress template page.&lt;/p&gt;

&lt;p&gt;template-name.php&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;form id="form1"&amp;gt;
            &amp;lt;div class="mb-3"&amp;gt;
                &amp;lt;label for="exampleInputEmail1" class="form-label"&amp;gt;Email address&amp;lt;/label&amp;gt;
                &amp;lt;input type="email" class="form-control" name="email" id="email" aria-describedby="emailHelp"&amp;gt;

                &amp;lt;br&amp;gt;

                &amp;lt;div id="emailHelp" class="form-text" style="font-size:20px;"&amp;gt;We'll never share your email with anyone else.&amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt;
            &amp;lt;button type="submit" class="btn btn-primary"&amp;gt;Submit&amp;lt;/button&amp;gt;
        &amp;lt;/form&amp;gt;


&amp;lt;script&amp;gt;
    var ajaxurl = "&amp;lt;?php echo admin_url('admin-ajax.php') ?&amp;gt;";

    jQuery('#document').ready(function () {
        jQuery('#emailHelp').hide();
        jQuery('#form1').submit(function (e) {
            e.preventDefault();
            jQuery('#emailHelp').hide();

            let formdata = new FormData(this);

            if(formdata.get("email")){
                jQuery.ajax({
                type: "POST",
                url: ajaxurl,
                data: {
                    action: 'newsletter_subscription',
                    email:formdata.get('email'),
                },
                success: function (response) {
                    jQuery('#emailHelp').show();
                  if(response == "success"){
                    jQuery('#emailHelp').text(response);
                  }else{
                    jQuery('#emailHelp').text(response);
                  }
                },
                error:function(response){
                    jQuery('#emailHelp').show();
                    jQuery('#emailHelp').text("Please enter your valid email id.");
                }
            });
            }else if(formdata.get("email") == null || formdata.get("email") == ""){
                jQuery('#emailHelp').show();
                jQuery('#emailHelp').text("Please enter your valid email id.");
            }

        });
    });
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now, go to your project’s functions.php file and paste the code below … But make sure which parameter(‘subscribed’ or ‘pending’) you passed with your audience list url. I have mentioned their usages by code below. &lt;/p&gt;

&lt;p&gt;functions.php&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;add_action('wp_ajax_newsletter_subscription', 'mailchimp_user');
add_action('wp_ajax_nopriv_newsletter_subscription', 'mailchimp_user');

function mailchimp_user()
{
    $email = $_POST['email'];
    $api_key = '0ff83cebe06aa1638d3703136c7094d0-us13';
    $data_center = substr($api_key, strpos($api_key, '-') + 1);
    $url = 'https://' . $data_center . '.api.mailchimp.com/3.0/lists/';

    try {
        $ch = curl_init($url);
        curl_setopt($ch, CURLOPT_USERPWD, 'user:' . $api_key);
        curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_TIMEOUT, 10);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        $result = curl_exec($ch);
        $status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
        curl_close($ch);

        // fetch the list id from the response
        if ($status_code === 200) {
            $response = json_decode($result, true);
            if (!empty($response['lists'])) {
                $list_id = $response['lists'][0]['id'];
            }
        }


        try {
            /**
             * pending -&amp;gt; means a confirmation mail will goes to email address for confirmation
             * subscribed -&amp;gt; means no need for confirmation and it will automatically saved audiences/lists/contacts in mailchimp 
             */
            $json = json_encode([
                'email_address' =&amp;gt; $email,
                'status' =&amp;gt; 'pending',
            ]);
            $url = 'https://' . $data_center . '.api.mailchimp.com/3.0/lists/' . $list_id . '/members';
            $ch = curl_init($url);
            curl_setopt($ch, CURLOPT_USERPWD, 'user:' . $api_key);
            curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
            curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
            curl_setopt($ch, CURLOPT_TIMEOUT, 10);
            curl_setopt($ch, CURLOPT_POST, 1);
            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
            curl_setopt($ch, CURLOPT_POSTFIELDS, $json);
            $result = curl_exec($ch);
            $status_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
            curl_close($ch);

            $arr = json_decode($result, true);
            if ($arr['title'] == "Member Exists") {
                echo "This email id already exist! You may check your mail's inbox of $email ";
            }
            else if (200 == $status_code) {
                echo "An confirmation email has been sent to $email ";
            }
        } catch (Exception $e) {
            echo $e-&amp;gt;getMessage();
        }


    } catch (Exception $e) {
        echo $e-&amp;gt;getMessage();
    }

    wp_die();
}        
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Note: After proper subscription you will find the subscriber inside your audience tab. For more visit mailchimp audience url “admin.mailchimp.com/audience/contacts/”&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0lqutxb5w9hxvndt2tlr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0lqutxb5w9hxvndt2tlr.png" alt="Image description" width="800" height="415"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>mailchimp</category>
      <category>programming</category>
      <category>laravel</category>
    </item>
    <item>
      <title>WordPress Theme Development: The Ultimate Folder Structure Guide</title>
      <dc:creator>Shimanta Das</dc:creator>
      <pubDate>Mon, 19 Aug 2024 18:03:39 +0000</pubDate>
      <link>https://forem.com/shimanta_microcodes/wordpress-theme-development-the-ultimate-folder-structure-guide-fae</link>
      <guid>https://forem.com/shimanta_microcodes/wordpress-theme-development-the-ultimate-folder-structure-guide-fae</guid>
      <description>&lt;p&gt;WordPress is a flexible framework when building websites. You can build any type of website such as CMS, e-commerce, single landing page etc. Here I will discuss the WordPress project's structure, so that you can make your custom theme. Popular themes like divi, Astra, Neve, oceanwp etc. are some fantastic choices when you make a website for yourself or a client. But sometimes you also need to build your custom theme for building websites from scratch. The main advantage of using WordPress as backend, is that you have a readymade admin panel with robust features like blog post, S.EO , versatile plugin library for various work. &lt;/p&gt;

&lt;p&gt;Let's see how to build a proper WordPress project's structure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;index.php
page.php
single.php
404.php
front-page.php
category.php
header.php
footer.php
archive.php
template-name.php
sidebar-name.php
/assets
          /js
          /css
          /images
          /fonts
          /icon

/templates
          contact_us.php
          about_us.php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🙈 For the homepage:&lt;br&gt;
     🦧front-page.php (if it exists): This file contains header.php and footer.php. Alongside it also contains home page sections like banner, carousels, front page images etc. &lt;br&gt;
    🐒home.php (if no static front page is set, or if front-page.php does not exist)&lt;br&gt;
index.php (if neither front-page.php nor home.php exist)&lt;/p&gt;

&lt;p&gt;🤓 page.php: calls when you call a page in the frontend. using this file that Page's content gets displayed. For displaying content inside the page you need to call the “the_content()” function.&lt;/p&gt;

&lt;p&gt;🤔 single.php: when you call a blog post that time this file gets called. For installing this file get the post-details.html file from the frontend developer or your HTML theme. &lt;/p&gt;

&lt;p&gt;🤦 404.php: Calls when page not found. sometimes we hit some page in the browser regarding our WordPress website, and meanwhile that page or slug does not exist! that time this file gets called. It also mentions a home page redirection link, which processes using “&amp;lt;?php echo get_site_url(); ?&amp;gt;” .&lt;/p&gt;

&lt;p&gt;🗿 category.php: when you want to show posts related to a particular category, that time this page get called. &lt;/p&gt;

&lt;p&gt;🙂 header.php: This file contains the header section related to the website. It includes meta tags, favicon, header files, navbar &amp;amp; pages and even common banner areas sometimes. &lt;/p&gt;

&lt;p&gt;🙃 footer.php: This file contains footer section information like quick links of pages, newsletter section, site admin email address, phone number, email etc. &lt;/p&gt;

&lt;p&gt;🤠 archive.php: An Archive Page in WordPress enables you to easily steer readers through your previously published content, such as blogs. WordPress Archive Pages are produced to organize a list of posts under a particular post type, category, or tag.&lt;/p&gt;

&lt;p&gt;👻 template-name.php: when you have to call a certain part in every pages in wordpress website, that time you can use this file technique. For example every website has a section called “get in touch” or “subscribe newsletter”. This section is always present on the top or either footer area in every page of that website. So we can make a file like “template-get_in_touch.php” and we can call it via &amp;lt;?php echo get_template_part(‘get_in_touch’); ?&amp;gt;&lt;/p&gt;

&lt;p&gt;👩‍🔧 sidebar-name.php: Sidebars play an important role in designing the layout of a WordPress website to display content other than the main articles of a website. For example, a short list of recent articles, recent comments, a list of pages, or popular articles on a website can easily be displayed across the entire site.&lt;/p&gt;

&lt;p&gt;🎅 assets/: Contains files like js, css static images, fonts etc. These files are not changed dynamically, it is required by many pages. For calling these assets you can use “&amp;lt;?php echo get_template_directory_uri(); ?&amp;gt;/assets/js/file.js”&lt;/p&gt;

&lt;p&gt;🌲 templates/: These folder consists of many php files which can be use by some pages in wordpress as ‘Template’. For example I have a page called contact and I made a file as ‘contact_us.php’ and set its ‘Template Name’ as ‘Contact Us’  inside templates/ folder. Now I can select this template inside the ‘contact’ page.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>php</category>
      <category>cms</category>
      <category>coding</category>
    </item>
    <item>
      <title>How to Integrate Gemini API into Your PHP Projects Using Curl</title>
      <dc:creator>Shimanta Das</dc:creator>
      <pubDate>Sun, 11 Aug 2024 07:40:23 +0000</pubDate>
      <link>https://forem.com/shimanta_microcodes/how-to-integrate-gemini-api-into-your-php-projects-using-curl-4ac9</link>
      <guid>https://forem.com/shimanta_microcodes/how-to-integrate-gemini-api-into-your-php-projects-using-curl-4ac9</guid>
      <description>&lt;p&gt;Learn how to seamlessly integrate the powerful Gemini Text API into your PHP applications using the versatile Curl library. This comprehensive guide covers step-by-step instructions, code examples, and best practices to help you effectively leverage Gemini's advanced text capabilities. Unlock the potential of AI-driven text processing and enhance your PHP projects today.&lt;/p&gt;

&lt;p&gt;Gemini has many options to work with, here I will introduce about how you can use Gemini Text generation API with your PHP project. You can use &lt;strong&gt;this script with various platforms such as WordPress, Laravel, CakePHP, CodeIgniter&lt;/strong&gt; etc.  &lt;/p&gt;

&lt;p&gt;Let's see the below code ...&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php
try {

    $apiKey = 'enter-you-gemini-api-key';
    $apiUrl = 'https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent';

    $message = "List top PHP frameworks based on PHP. What are their advantages.";


    $data = json_encode([
        'contents' =&amp;gt; [
            [
                'parts' =&amp;gt; [
                    [
                        'text' =&amp;gt; "$message"
                    ]
                ]
            ]
        ]
    ]);

    $ch = curl_init($apiUrl . '?key=' . $apiKey);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_HTTPHEADER, [
        'Content-Type: application/json'
    ]);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);

    $response = curl_exec($ch);
    $responseArray = json_decode($response, true);

    if (isset($responseArray['candidates'][0]['content']['parts'][0]['text'])) {
        $text = $responseArray['candidates'][0]['content']['parts'][0]['text'];
        echo $text;
    } else {
        echo "error";
    }


    curl_close($ch);


} catch (Exception $e) {
    echo $e-&amp;gt;getMessage();
}
?&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F275126fsbm3tuj01lk6c.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F275126fsbm3tuj01lk6c.PNG" alt="Image description" width="800" height="240"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>gemini</category>
      <category>php</category>
      <category>ai</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
