Support » Plugin: WP Show Posts » Display Author Filter

  • signale

    (@signale)


    Hey, is there a way of hooking the author output?
    I need to paste the text “POSTED BY” before the nick, so I thought to make it when it’s the author output generated or something.
    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • signale

    (@signale)

    okay, for some reason it worked, though usually it requires adding add_filter(). And this time it worked only when I chose the right hook.
    So
    <?php
    echo (“POSTED BY “).get_author_name();
    ?>
    and the hook
    wpsp_author_output

    and it works, just hope it will work in all cased.

    Plugin Author Tom

    (@edge22)

    That should work.

    You could also just use CSS:

    .author-name:before {
        content: "Posted by ";
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.