While digging deeper into this problem: I found another issue in inc/customposttype.php!
You are using a somewhat improper syntax forthe labels. Example:
'singular_name' => _x( 'Team Member', 'wp-team-manager' ),
In this case, no translation from the .po file is drawn. You are using the domain as the description. If you really want to add a description for the labels, it should read:
'singular_name' => _x( 'Team Member', 'WP Team Manager Plugin', 'wp-team-manager' ),
Or, if that is not needed, you could sipmly replace _x( with __(
I assume you are running your test site inenglish language, that could be the reason why you have not yet stumbled over this 😉
Still looking after the l18n and found another issue: The localization of the metabox is somehow not happening. I double-checked if the proper stings are present in the .po file. Any Ideas about this?
Sorry to be a menace, but I find your plugin pretty useful and I want to provide it for my customer.
And another one: When selecting grid layout in a shorcode, the display will be as list and vice versa. The reason are the wrong named css classes. In tm-styles.css I found the following block:
.team-list>.grid {
width: 100%;
float: left;
list-style: none;
border-bottom: 1px solid #eee;
margin-bottom: 20px;
padding-bottom: 20px;
margin-left: 0px;
}
.team-list>.list {
width: 45%;
float: left;
list-style: none;
border: 1px solid #eee;
margin-bottom: 20px;
margin-right: 10px;
margin-left: 0px;
padding: 10px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.list .team-member-info {
width: 100%;
margin-right: 0;
text-align: center;
min-width: 170px;
float: right;
}
.list .team-member-des {
width: 100%;
}
Which should be
.team-list>.list {
width: 100%;
float: left;
list-style: none;
border-bottom: 1px solid #eee;
margin-bottom: 20px;
padding-bottom: 20px;
margin-left: 0px;
}
.team-list>.grid {
width: 45%;
float: left;
list-style: none;
border: 1px solid #eee;
margin-bottom: 20px;
margin-right: 10px;
margin-left: 0px;
padding: 10px;
-webkit-border-radius: 5px 5px 5px 5px;
border-radius: 5px 5px 5px 5px;
-webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.grid .team-member-info {
width: 100%;
margin-right: 0;
text-align: center;
min-width: 170px;
float: right;
}
.grid .team-member-des {
width: 100%;
}
Plugin Author
Maidul
(@maidulcu)
Hello, I fixed this on new update