WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
[resolved] Post Author First Name (10 posts)

  1. Vohl
    Member
    Posted 11 months ago #

    Hi,

    Using this macro in a post, I have a problem with usernames that are divided by a hyphen or a dot.

    In the first example, the first letter of the word after the hyphen is always capitalized and, in the second one, the first letter of the part after the dot is always in lowercase.

    Examples:

    1. Username named Power-driven turns out to be Power-Driven.
    2. Username named No.Ki. turns out to be No.ki.

    In the author archives, however, all is well.

    Hoping for a quick fix in the near future. :)

    Thanks,
    Vohl

    http://wordpress.org/plugins/all-in-one-seo-pack/

  2. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    Vohl,

    Where are you seeing this behavior, specifically? There are a couple of options under Title Settings that control capitalization, these are "Capitalize Titles" and "Capitalize Category Titles" - you could try turning them off if they're on.

  3. Vohl
    Member
    Posted 11 months ago #

    Peter,

    I tried turning them off, with no luck whatsoever.

    I'm getting this misbehavior in the posts of the certain authors with hyphens or dots in their usernames. In Post Title Format, I'm using the first name macro in the following order:

    %post_title% | %post_author_firstname% | %blog_title%

    In WordPress settings, I'm writing the desired author's usernames (a nickname or a first name and a surname) in the First Name column.

    So, if I have an author named John Doe, all is well in the tabs as well:

    %post_title% | John Doe | %blog_title%

    But, if the author's name is Power-driven (small "d") or No.Ki. (capitalized letter after the dot), the lines in the tabs look like this:

    %post_title% | Power-Driven | %blog_title%

    and

    %post_title% | No.ki. | %blog_title%

    In the author's archives (using - %author% | %blog_title%), the lines in the tabs are as they should be:

    John Doe | %blog_title%
    Power-driven | %blog_title%
    No.Ki. | %blog_title%

    Thanks for your help,
    Vohl

  4. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    Vohl,

    I can verify that this is expected behavior; if you look at the help for Post Title Format, you'll see this:

    %post_author_nicename% - This post's author' nicename
    %post_author_firstname% - This post's author' first name (capitalized)
    %post_author_lastname% - This post's author' last name (capitalized)

    First name and last name are each capitalized using the ucwords() function, so that's what's going on here.

  5. Vohl
    Member
    Posted 11 months ago #

    Peter,

    Sure, I read those, but I thought it meant that the first letter of the first name and the first letter of the last name will be in uppercase, and you can do what you like with the rest of them. :)

    Isn't there a way for the plugin to read the names as they are, like in the author's archives, or will the dots and hyphens always be out of the question?

    Thanks again,
    Vohl

  6. Peter Baylies
    Member
    Plugin Author

    Posted 11 months ago #

    Vohl,

    Currently if you wanted to change how that part of the title gets output, you'd have to filter the title and replace it with your own; this is entirely possible, however. You should be able to use the aioseop_title_single filter, or more generally, the aioseop_title will always work (but then you'd have to check what kind of post it is as well).

  7. Vohl
    Member
    Posted 11 months ago #

    Thanks, Peter - for both the suggestions and the wonderful plugin.

  8. Vohl
    Member
    Posted 11 months ago #

    Peter, I'm noticing similar behavior in my categories as well.

    Only the first letter of the acronyms is capitalized, so, instead of, let's say, DNA - %blog_title%, I'm getting Dna - %blog_title%. :)

  9. Peter Baylies
    Member
    Plugin Author

    Posted 10 months ago #

    Vohl,

    There's an option in All in One SEO Pack for capitalizing category titles; if you have that checked, you can try unchecking it.

  10. Vohl
    Member
    Posted 10 months ago #

    Thanks, Peter.

    I, once again, overlooked this option. :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.