Wordpress SEO - What are you looking for?

If you're looking for answers to SEO or wordpress related questions, type in a phrase and wait for hints or click enter! The results also show links to external sources.

161 articles in the database

How to exclude posts from specific categories from RSS

[ Article content is protected by Plagiashield ]

Today I will show how we can exclude our websites entries found in a given category without using it for that purpose plugs.

To do this, you need to include the following in your template websites put the following code in the functions.php file:

function rssex($query) {
if ($query->is_feed) {
$query->set('cat','-38,-1');
}
return $query;
}
add_filter('pre_get_posts','rssex');

The given numbers 38 and 1 are sample IDs of excluded categories containing specific entries. Please remember to add the "-" (minus) before numerals

Wojciech Wladzinski

O Wojciech Wladzinski

I have been dealing with SEO industry since 2008. At co day senior SEO specialist in the company Seogroup. I create and optimize large websites like and smaller websites. I am particularly fond of the environment WordPresswhich, despite popular belief, is not just a blogging platform.
  • Internal Links and Sematics

  • Link building
  • Sematics
  • Link building has never been easier. Hundreds of link possibilities in one click.
  • See

[ Article content is protected by Plagiashield ]

SEMRush - the best tool for SEO and PPC.

en_USEnglish
Read previous post:
How to automatically remove short words from url's

Today I am going to introduce you to a short code that allows you to automatically remove short words from url's. The code removes phrases containing less than ...

Close