• Hey
    I want to add the author’s name and link in the sidebar next to the date of the last entry.
    Can you tell me, where i have to put the PHP Code?
    Thank you
    Thomas

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hey,
    Are you wanting to add this to a widget or just add that information through like a text widget?

    Kadence Themes

    Thread Starter th_farbe

    (@hlanda)

    Thanks for your reply.
    The standard widget setting provide to output the following:

    Last Entries
    Title of entry one
    date

    Title of entry two
    date

    and so on…

    Now I want to add the name of the author as a clickable link:

    Title of entry
    date – author

    Thank you!

    hannah

    (@hannahritner)

    Hey hlanda,
    Do you mind posting a link?
    Thanks!

    Hannah

    Thread Starter th_farbe

    (@hlanda)

    sure:
    http://blog.lacassette.at/

    at the moment I “fixed” it by inserting the link for the only author via JQuery. But as I am going to add more authors soon, this won’t do the trick.

    Thanks!

    ok, so thats a wordpress core widget. And since if you edit it you will lose any edit once you update wordpress I would suggest using a child theme copying the widget code from the core of wordpress into the child theme and renaming the whole thing so it doesn’t conflict. Once all the functions are renamed and you can load it then you can edit the output code to have the author how you like,

    Hope that helps,

    Kadence Themes

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Sidebar last entries – add Author’ is closed to new replies.