<?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: DigitalKube</title>
    <description>The latest articles on Forem by DigitalKube (@digitalkube).</description>
    <link>https://forem.com/digitalkube</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%2Forganization%2Fprofile_image%2F482%2F46568d58-1163-46ba-9e5c-825cee5171c2.png</url>
      <title>Forem: DigitalKube</title>
      <link>https://forem.com/digitalkube</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/digitalkube"/>
    <language>en</language>
    <item>
      <title>Is Astra Pro worth it (Answered 20 Questions to Help You Decide)</title>
      <dc:creator>Ritesh Saini</dc:creator>
      <pubDate>Thu, 16 Feb 2023 04:27:42 +0000</pubDate>
      <link>https://forem.com/digitalkube/is-astra-pro-worth-it-answered-20-questions-to-help-you-decide-163i</link>
      <guid>https://forem.com/digitalkube/is-astra-pro-worth-it-answered-20-questions-to-help-you-decide-163i</guid>
      <description>&lt;p&gt;Have you always wanted to start a blog but were hesitant because it seemed too daunting? Blogging can be easy as long as you have a theme like Astra Pro.&lt;/p&gt;

&lt;p&gt;This blog theme gives you all the tools you need to create amazing blogs and makes blogging easy.&lt;/p&gt;

&lt;p&gt;But is it worth the hype? Let’s find out in &lt;a href="https://www.digitalkube.com/is-astra-pro-worth-it/"&gt;this article&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>astra</category>
      <category>wordpressthemes</category>
      <category>design</category>
    </item>
    <item>
      <title>Hide Posts From Particular Categories From WordPress Homepage Without Using a Plugin</title>
      <dc:creator>Ritesh Saini</dc:creator>
      <pubDate>Thu, 04 Aug 2022 15:12:00 +0000</pubDate>
      <link>https://forem.com/digitalkube/hide-posts-from-particular-categories-from-wordpress-homepage-without-using-a-plugin-2f21</link>
      <guid>https://forem.com/digitalkube/hide-posts-from-particular-categories-from-wordpress-homepage-without-using-a-plugin-2f21</guid>
      <description>&lt;p&gt;By default, the homepage of your WordPress site shows posts from all the categories.&lt;/p&gt;

&lt;p&gt;However, it is possible to exclude certain categories from being displayed on your homepage, but there's no option to do that in WordPress out of the box.&lt;/p&gt;

&lt;p&gt;I wanted to hide posts from the &lt;a href="https://www.digitalkube.com/category/deals/"&gt;deals category&lt;/a&gt; on my site because a lot of affiliate programs misunderstand internet marketing blogs that post coupons as &lt;strong&gt;"deals sites"&lt;/strong&gt;, which they do not allow.&lt;/p&gt;

&lt;p&gt;To avoid confusion, I decided to hide all the posts from the deals category from my site's home.&lt;/p&gt;

&lt;p&gt;In this tutorial, I will show you how to create a category filter without using a plugin.&lt;/p&gt;

&lt;p&gt;You need to edit your site's &lt;strong&gt;functions.php&lt;/strong&gt; file and add the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function hide_category_home( $query ) {
if ( $query-&amp;gt;is_home ) {
    $query-&amp;gt;set( 'cat', '-9' );
}
    return $query;
}
add_filter( 'pre_get_posts', 'hide_category_home' );
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;strong&gt;9&lt;/strong&gt; with your category's ID. Don't remove '-'&lt;/p&gt;

&lt;p&gt;Use the below code to hide posts from multiple categories:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function hide_category_home( $query ) {
if ( $query-&amp;gt;is_home ) {
    $query-&amp;gt;set( 'cat', '-9, -69, -23' );
}
    return $query;
}
add_filter( 'pre_get_posts', 'hide_category_home' );
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Click save and you're done!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
