Rated tactics for Logged on Users

From version 1.0.68 of WordPressChess, tactics for logged on users is available. This features makes it possible for you to show tactic puzzles to your logged on users. ELO is also calculated based on how they do it on these puzzles. You can see an example of this in use below.

To use this features, you must first enable user registrations in your WordPress admin(Settings->General).

Here’s an example of the shortcode for the rated tactics:

[chess tactics="1" tpl="2" db="26,27" width="60%" float="left" css="padding-right:8px"]

The import properties are tactics, db and tpl

tactics should be set to 1 and tpl should be set to 2.

The db attribute contains references to the imported chess databases. If you want to show games from more than 1 database, you separate each database id with a comma as in the example above.

When multiple databases are used, WordPressChess will first show games from the first database. Once all those games has been completed(solved or failed), it will show games from the second database and so on.

Not-logged on users

By default, not logged on users will see a clickable box on the board which will redirect them to the login page. After successful login, they will be directed back to the tactics board. If you do not want this feature, you can use the attribute


to show the other for not logged on users. This tactics board(tpl=1) does not require a login.

Custom styling

The stylings used in this template is something you can override in your WordPress css (Appearance->Customise).

Here are the css classes used for this tactic template:

Image shown to not logged on users

background-image: url(../images/login-300x300.png);
Clock icon

background:url(../images/clock-icon.png) left center no-repeat;
Colors for positive or negative rating change



Buttons for next game and reload current game

background-color: #BBB;

Changing the image is not yet supported, but will be implemented soon.

Color of failed and solved box above the board



Large start button


.wpc-clock {
float: right;
padding-left: 35px;
padding-right: 4px;
background: url(../images/clock-icon.png) left center no-repeat;
.wpc-clock-digits {
font-family: digital-7, arial, sans-serif;

Note: The digital-7 font is a font which comes with WordPressChess PRO. WordPressChess.com has purchased a commercial license for this font.

Please feel free to comment using the form below.

Share This:

You may also like...

3 Responses

  1. Antonio says:

    I am developing my chess site. Congratulations Alf! ♔ ♕ ♖ ♗ ♘ ♙

  2. veton says:

    where do i find db=”26,27″ for the rated tactics?

    • Alf says:

      There are some tactic pgns in the zip bundle(pgn folder). You need to import them from the admin user interface first. 26,27 are the ids of the pgns after import

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.