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

Widget logic, i.e. displaying widgets where you want them

[ Article content is protected by Plagiashield ]

Widget logic i.e. plug do WordPress-a that allows you to display a specific widget only in places that we specify. Like Does it work?

1. After installation plugs we go into panel WordPress-a to the widget section.

2. If we expand a particular widget that has already been added, we will notice a new field displayed next to each widget


3. It is in this field that we will be entering specific commands.

4. In establishing the rules where the widget to be displayed we use the standard conditional tags from the WordPress code

5. So, for example, if we want to display coś:

$categoryName - variable corresponding to the name of a certain category
$tpostname - variable corresponding to the name of the specific post
$PageName - variable corresponding to the name of a specific websites

On the home page


only website main


only static page used as home page in Settings > Reading

On the category pages


on all categories

 is_category( '$categoryName' ) 

only in a category with a specific name

 is_category(array ( '$percategory', '$percategory', '$percategory' ) ) 

only in categories with a specific name

 in_category(array ( '$percategory', '$percategory', '$percategory' ) ) 

display only on posts in the given category/categories

On the posts


on all entries

 is_single( '$Nameofpost' ) 

on an entry with a specific name

 is_single( array( '$nazwapostu', '$nazwapostu', '$nazwapostu' ) ) 

on entries with specific names

On the pages



 is_page( '$websiteName' ) 

at website by a specific name

 is_page( array( '$NamePage', '$NamePage', '$NamePage' ) ) 

on pages with specific names

Instead of element names like category, entry and page can be use their ID

Wojciech Wladzinski

O Wojciech Wladzinski

I have been working in SEO industry since 2008. On a daily basis a senior SEO specialist in a company Seogroup. I create and optimize large websites as well as smaller ones. 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.

Read previous post:
How to automatically redirect search results when they contain only one result?

It often happens, that from all resources on our site, user searching the site using built-in Wordpress search engine gets only...