Using Code in Text Widget for Authors/Contributors

  • Unknown's avatar

    Hi,

    I understand that the author widget doesn’t allow for reordering, so I’m trying to work around it. So, a couple of questions:

    1. What is the “show if”/”hide if” feature in this widget for? I thought I could simply hide other contributors/authors and list them in a separate text box but apparently this doesn’t work, so I’m wondering what its purpose is.

    2. I need to create a new text box using the text widget that will essentially do the same thing as the author widget: list authors –with avatar images and link to their posts, only something I’ll be able to control the order of. But that code is a little beyond my capabilities. I could create a basic list of authors and images, but I’m not sure about the linking to posts part. Does anybody know of a link to some code somewhere that could help get me started with this textbox I want to create? Or better yet, has anybody done this already that can share their code and I can make the necessary adjustments?

    3. This really should be an option in the Authors widget. Anybody know if WP is working on adding it?

    Many thanks for your time.

    Kelli

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    The authors widgets is for authors only. It’s not for contributors and that’s the long and short of it.
    http://en.support.wordpress.com/user-roles/

    1. The show/hide if is the widget visibility setting.Widgets now have “visibility” settings so we can select which pages they display on. See here: http://en.support.wordpress.com/widgets/#widget-visibility

    2. There is no way for you to create an automatically-updating widget. Be clear on that because we can’t use JavaScript. So you will have to manually update any widget data you create every time a new post is published.
    http://en.support.wordpress.com/code/
    http://en.support.wordpress.com/widgets/text-widget/

    3. If you want to suggest that the authors widget be changed or that another one be developed the Ideas Forum is where to suggest that and here’s a link to do that with https://en.forums.wordpress.com/forum/ideas#postform

  • Unknown's avatar

    2) You can create a text widget without learning code if you do it this way:

    Create a draft Post. You don’t need to title it, just use it to create widgets. Use the visual editor to center things or change alignment, put in images, links, and text, whatever you like. Just keep in mind the width of your widgets. Once it looks more or less like you want it to, click to the Text editor, copy all the code, and paste that in the text widget.

  • The topic ‘Using Code in Text Widget for Authors/Contributors’ is closed to new replies.