Support » Fixing WordPress » Forcing lowercase?

  • iamPariah


    Is there a way to force WP template tags to insert mixed case results as lower case?

    I need to somehow print out this: Make lowercase (author_firstname & “.” & author_lastname).

Viewing 3 replies - 1 through 3 (of 3 total)
  • Kate


    You can try this IF you don’t have a standard div surrounding your author output ie:

    <div class=”something”> then the author php code info you want to generate </div>:

    .something {
    text-transform: lowercase;

    Simple and effective.

    <span style=”text-transform:lowercase”><?php author_lastname(); ?></span>

    I force uppercase in my sidebar, so I styled the rightmenu to produce the results.




    Thanks, Kate, but I actually need the variables to be returned lowercase (as opposed to simply displaying lowercase) so I can use them in a function.



    OK. I understand you want the variable OUTPUT to be displayed lowercase via a special call function, but surely you’re going to wrap all this in an element somewhere on a template?

    Sometimes, when it comes to variables and output via php coding, its easier to use the K.I.S.S theory 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Forcing lowercase?’ is closed to new replies.