{"id":2557,"date":"2021-02-04T22:30:12","date_gmt":"2021-02-05T06:30:12","guid":{"rendered":"https:\/\/www.ultimatewb.com\/blog\/?p=2557"},"modified":"2026-02-22T12:41:17","modified_gmt":"2026-02-22T20:41:17","slug":"how-to-remove-wordpress-blog-dates-authors-in-all-or-certain-categories","status":"publish","type":"post","link":"https:\/\/www.ultimatewb.com\/blog\/2557\/how-to-remove-wordpress-blog-dates-authors-in-all-or-certain-categories\/","title":{"rendered":"How to remove WordPress blog dates, authors in all or certain categories"},"content":{"rendered":"\n<p>We recently released an update to the integrated WordPress blog (<a href=\"https:\/\/www.ultimatewb.com\/blog\/2532\/new-year-and-new-ultimate-web-builder-software-upgrade-6-4\/\">New Year and New Ultimate Web Builder Software Upgrade 6.4<\/a>) to make it easier to to not show blog dates and authors for posts in all or certain categories. No third-party plugin install required!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1) Switch your WordPress theme: Activate the &#8220;uwb2&#8221; theme.<\/h2>\n\n\n\n<p>Login to your WordPress admin panel, and navigate to Appearance &gt; Themes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\">    <picture>\n                <img src=\"https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/wordpress-themes-menu.jpg\"\n             srcset=\"https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/wordpress-themes-menu.jpg 402w, https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/wordpress-themes-menu-300x205.jpg 300w\"             sizes=\"(max-width: 600px) 100vw, (max-width: 1200px) 75vw, 1200px\"\n             width=\"402\"\n             height=\"275\"\n             alt=\"wordpress-themes-menu\"\n             loading=\"lazy\"             decoding=\"async\"\n             class=\"wp-image-2559\" >\n    <\/picture>\n    <\/figure>\n\n\n\n<p>The available WordPress themes are displayed. Select the &#8220;uwb2&#8221; theme. If you do not find it here, it means that you have not uploaded the new theme to your blogs folder. After downloading the new UltimateWB Full upgrade files, it will be under the &#8220;blog_sample&#8221; folder &gt; wp-content &gt; themes &gt; uwb2.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\">    <picture>\n                <img src=\"https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/wordpress-uwb2-theme.jpg\"\n             srcset=\"https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/wordpress-uwb2-theme.jpg 777w, https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/wordpress-uwb2-theme-300x185.jpg 300w, https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/wordpress-uwb2-theme-768x474.jpg 768w\"             sizes=\"(max-width: 600px) 100vw, (max-width: 1200px) 75vw, 1200px\"\n             width=\"777\"\n             height=\"480\"\n             alt=\"wordpress-uwb2-theme\"\n             loading=\"lazy\"             decoding=\"async\"\n             class=\"wp-image-2560\" >\n    <\/picture>\n    <\/figure>\n\n\n\n<p>And mouse over the uwb2 theme to click on the &#8220;Activate&#8221; button:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\">    <picture>\n                <img src=\"https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/wordpress-uwb-theme-activate.jpg\"\n             srcset=\"https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/wordpress-uwb-theme-activate.jpg 498w, https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/wordpress-uwb-theme-activate-300x254.jpg 300w\"             sizes=\"(max-width: 600px) 100vw, (max-width: 1200px) 75vw, 1200px\"\n             width=\"498\"\n             height=\"421\"\n             alt=\"wordpress-uwb-theme-activate\"\n             loading=\"lazy\"             decoding=\"async\"\n             class=\"wp-image-2561\" >\n    <\/picture>\n    <\/figure>\n\n\n\n<p>You will get a confirmation message when activated:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\">    <picture>\n                <img src=\"https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/wordpress-new-uwb-theme-activated.jpg\"\n             srcset=\"https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/wordpress-new-uwb-theme-activated.jpg 477w, https:\/\/www.ultimatewb.com\/blog\/wp-content\/uploads\/wordpress-new-uwb-theme-activated-300x283.jpg 300w\"             sizes=\"(max-width: 600px) 100vw, (max-width: 1200px) 75vw, 1200px\"\n             width=\"477\"\n             height=\"450\"\n             alt=\"wordpress-new-uwb-theme-activated\"\n             loading=\"lazy\"             decoding=\"async\"\n             class=\"wp-image-2562\" >\n    <\/picture>\n    <\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2) File editing if you need further customization&#8230;<\/h2>\n\n\n\n<p>If you want to not show the post date \/ author for all posts outside of the &#8220;Announcements&#8221; category, you&#8217;re done! If you want to customize this further, read on for the instructions&#8230;<\/p>\n\n\n\n<p>Login to your web hosting account (cPanel if you&#8217;re hosting with UltimateWB). Double-click on the File Manager icon to open it, and navigate to your blog folder \/ wp-content \/ themes \/ uwb2.<\/p>\n\n\n\n<p>Three WordPress files are involved in the display of the post dates and authors:<\/p>\n\n\n\n<p>wp-content\/themes\/uwb2\/loop.php<br>wp-content\/themes\/uwb2\/loop-single.php<br>wp-content\/themes\/uwb2\/loop-attachment.php<\/p>\n\n\n\n<p>You can find the section in each of these page where the clause has been added to omit the date\/author of the post if it&#8217;s in the Announcements category by searching (CTRL-f) for the following term: <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>if (in_category(&#8216;Announcements&#8217;<\/p><\/blockquote>\n\n\n\n<p>What this phrase means is that if the post is in the Announcements category, continue with the rest of this code block. So, if you would like to add more categories that would make the statement true, you can add more clauses, i.e.:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>if (in_category(&#8216;Announcements&#8217;) || in_category(&#8216;Category 2&#8217;)<\/p><\/blockquote>\n\n\n\n<p>The final coding for this section woul look something like:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-default is-layout-flow wp-block-quote-is-layout-flow\"><p>f (in_category(&#8216;Announcements&#8217;) || in_category(&#8216;Category 2&#8217;) || in_category(&#8216;Category 3&#8217;))<\/p><\/blockquote>\n\n\n\n<p>vs <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>if (in_category(&#8216;Announcements&#8217;))<\/p><\/blockquote>\n\n\n\n<p>The || means &#8220;or&#8221;. Note you can use category names or category id numbers, useful if you might be changing category names.<\/p>\n\n\n\n<p>There are 2 instances of this on the loop.php file, and one instance in the loop-single.php file, and the loop-attachment.php file.<\/p>\n\n\n\n<p>You can check out this customization in action:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.ultimatewb.com\/blog\">UltimateWB blog<\/a> (our blog!)<\/p>\n\n\n\n<p><a href=\"https:\/\/www.mewetoo.com\/blog\">Me We Too blog<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.shoutoutuniverse.com\/blog\">Shout Out Universe blog<\/a><\/p>\n\n\n\n<p>Enjoy customizing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We recently released an update to the integrated WordPress blog (New Year and New Ultimate Web Builder Software Upgrade 6.4) to make it easier to to not show blog dates and authors for posts in all or certain categories. No &hellip; <a href=\"https:\/\/www.ultimatewb.com\/blog\/2557\/how-to-remove-wordpress-blog-dates-authors-in-all-or-certain-categories\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1504],"tags":[1508,1507,1506,1505,109,1492],"class_list":["post-2557","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-blog-authors","tag-blog-dates","tag-remove-authors","tag-remove-dates","tag-wordpress","tag-wordpress-customization"],"_links":{"self":[{"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/posts\/2557"}],"collection":[{"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/comments?post=2557"}],"version-history":[{"count":9,"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/posts\/2557\/revisions"}],"predecessor-version":[{"id":8807,"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/posts\/2557\/revisions\/8807"}],"wp:attachment":[{"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/media?parent=2557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/categories?post=2557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ultimatewb.com\/blog\/wp-json\/wp\/v2\/tags?post=2557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}