• Hi, Does anyone know how to make it so WordPress DOESN’T automatically put authors of posts in alphabetical order? I’m listing two people as authors for one post, but don’t want them in alphabetical order.

    If anyone could help me out, I’d appreciate it.

    Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The function that outputs the author name only ever outputs one author(there’s no native multiple author support that i’m aware of), if you’re displaying multiple authors for posts then you must have your own code in place for doing so..

    How are you setting the authors when you’re creating a post?

    Thread Starter LillyA

    (@lillya)

    Under Writer, WordPress gives me an option to add different tags, so if I want more than one author for the post, I choose more than one tag… Does that answer your question?

    Thread Starter LillyA

    (@lillya)

    The tags are all writers’ names, in other words…

    Thread Starter LillyA

    (@lillya)

    Here’s a post we recently did. I need to know how to put the names after “By” in the order that I want…

    http://www.fairwarning.org/2010/11/global-warming-law-survives-challenge-on-california-ballot/

    Ok i think i understand, you must have some code in place to display these tags of authors, but without seeing that code it’s not really possible to provide a quick hack of sorts..

    I assume the “writers” tag is a custom taxonomy.. which tells me we’re looking for a function that prints terms, but that’s about as definitive as i can be unfortunately..

    Is there anything else you can tell me? Are you familiar with themes and/or code?

    Thread Starter LillyA

    (@lillya)

    I can get to our code pages, our style sheet, front page css, but i don’t know exactly what to look for or how i should change the code…

    Here’s our byline code…Messing with the widgets won’t do it? Our tag widget?

    /* Byline */
    #widget-container .byline .text, #widget-container .byline .author { display: none }
    #utility-after-content .byline .text, #utility-after-content .byline .author { display: none }
    .byline, h6 {
    	font-size: 11px;
    	color: #7C8488;
    	margin: 8px 0 8px 0;
    	}
    .archive .byline, .search .byline {
    
    	}
    .byline a {
    	font-style: normal;
    	text-decoration: underline;
    	}

    Thread Starter LillyA

    (@lillya)

    More code…

    /* Single-post author box */
    .single .author-profile {
    	overflow: hidden;
    	margin: 0 0 20px 0;
    	padding: 9px 9px 0 9px;
    	background: #f7f7f7;
    	border: 1px solid #ccc;
    	}
    .single .author-profile p {
    	margin: 0 0 9px 0;
    	}
    .single .author-profile .avatar {
    	margin: 0 20px 9px 0;
    	}

    The code you’re posting is CSS, and that unfortunately won’t help, the issue lies with PHP in the theme template files..

    Bear in mind this will possibly need changing in several files, but i’d say start with single.php.

    Please post code to a pastebin if pasting anything over 15 lines.. 😉

    Thread Starter LillyA

    (@lillya)

    do you think it’s in the authors.php, blog.php, post.php tags.php? any ideas?

    Thread Starter LillyA

    (@lillya)

    Looks like a function is responsible…

    I’ll need to see whichever file defines that function, or possibly a function hooking onto that action (i’ve not seen the hybrid theme code to know)..

    Possibly functions.php but may be another file..

    Did you ask on the Hybrid forums about making this modification? They might in a better position to explain where you need to make the necessary modification..

    Thread Starter LillyA

    (@lillya)

    No, how do i get to that forum? thanks for your help..

    You can find the Hybrid forums here.
    http://themehybrid.com/support/

    🙂

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

The topic ‘Authors in alphabetical order’ is closed to new replies.