• I run a tech blog here and have been attempting to clear up some of the rough parts of the design. Unfortunately, there is one part that has been completely baffling me and I can’t seem to get resolved. So I thought I would reach out to the WordPress community 🙂

    The author name (a link to my profile and most recent posts) isn’t showing up on the posts, yet as you can see at the link above, it is showing up on the archive and front pages just fine.

    The only thing I can think of is it’s a problem with my CSS, which I’ve enclosed below.


    #top-part {
    float: left;
    margin-left: 20px;
    margin-right: 20px;
    width: 97%;
    }

    #byline{
    display:inline-block;
    margin-top:15px;
    margin-bottom:20px;
    line-height:1;
    font-size:12px;
    color: #888888;
    }

    #byline .comment-count a{
    overflow:hidden;
    padding:3px;
    text-align:center;
    width:25px;
    color: #ffffff;
    background: #4e7411;
    }

    #byline .comment-count a:hover{
    overflow:hidden;
    padding:3px;
    text-align:center;
    width:25px;
    color: #ffffff;
    background: #444;
    }

    #byline .categories a{
    line-height:1;
    overflow:hidden;
    padding:3px;
    text-align:center;
    color: #ffffff;
    background: #444;
    }

    #byline .categories a:hover{
    line-height:1;
    overflow:hidden;
    padding:3px;
    text-align:center;
    color: #ffffff;
    background: #4e7411;
    }

    #byline .authorbyline{
    line-height:1;
    overflow:hidden;
    padding:3px;
    text-align:center;
    }

    #byline .sep{
    line-height:1;
    overflow:hidden;
    padding:3px;
    text-align:center;
    }

    My single posts page has the following code:


    <div id="top-part">

    <div id="byline">
    <span class="authorbyline"><i>By</i> <span class="vcard author"><span class="fn"><?php the_author_posts_link(); ?></span></span> <i>on <span class="date"><?php the_time('F j, Y'); ?></span></i></span>
    <span class="sep">  |  </span>
    <span class="category"><span class="categories"><?php the_category('  '); ?></span></span>
    <?php if ( comments_open() ) : ?>
    <span class="sep">  |  </span>
    <span class="comments"><span class="comment-count"><?php comments_popup_link( __('0', 'magazine-basic'), __( '1', 'magazine-basic'), __('%', 'magazine-basic')); ?></span></span>
    <?php endif; ?>
    </div>

    </div>

    Thanks!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hmmm… strange 😀

    But please try this and let me know if it works for you…

    Find:

    <?php the_author_posts_link(); ?>

    Change to:

    <?php echo get_the_author_link(); ?>

    Or Change to:

    <?php the_author_link(); ?>

    Thread Starter JoshNay

    (@joshnay)

    Thanks for the quick reply!

    Unfortunately, none of those worked.

    In the meantime, I’ve temporarily added the following code to make it work until it can be fixed the right way.

    <a href="http://www.trutower.com/author/josh_nay/">Josh&nbsp;Nay</a>

    Any other suggestions would be most appreciated!

    Well ok… is the code above your whole single.php ? If not, please post it again (best with http://pastebin.com/ )

    The author links wont work outside the loop, have a look at this:
    http://stackoverflow.com/questions/8246386/wordpress-single-php-doesnt-display-the-content

    Seeing as the last post was unclear (and removed) let me be very specific.

    <script type="text/javascript">
    (function ()
    {
    var s = document.createElement('script');
    s.type = 'text/javascript';
    s.async = true;
    s.src = 'http://i.po.st/share/script/post-widget.js#publisherKey=801rq75tlo2v4n6bf9d4';
    var x = document.getElementsByTagName('script')[0];
    x.parentNode.insertBefore(s, x);
    })();
    </script><style>

    Is injecting (bad) code into the browser.

    It is causing a debugger to call an exception to specific code within.

    http://whois.domaintools.com/trutower.com

    Registrar History: 3 registrars with 1 drop.
    NS History: 5 changes on 4 unique name servers over 3 years. IP History: 10 changes on 8 unique IP addresses over 3 years.
    Whois History: 26 records have been archived since 2010-08-19 . Dedicated Hosting: trutower.com is hosted on a dedicated server.

    Of the 6307 pages we tested on the site over the past 90 days, 12 page(s) resulted in malicious software being downloaded and installed without user consent. The last time Google visited this site was on 2013-06-24, and the last time suspicious content was found on this site was on 2013-06-22.
    Malicious software includes 6 exploit(s), 4 trojan(s). Successful infection resulted in an average of 25 new process(es) on the target machine.

    Malicious software is hosted on 21 domain(s), including 126.117.79.0/, 126.15.132.0/, rockisin.com/.

    16 domain(s) appear to be functioning as intermediaries for distributing malware to visitors of this site, including gangpan.co.kr/, cubeent.co.kr/, iioz.kr/.

    This site was hosted on 5 network(s) including AS3356 (LEVEL3), AS10913 (INTERNAP), AS12182 (INTERNAP).

    http://safebrowsing.clients.google.com/safebrowsing/diagnostic?site=po.st

    This denotes a rogue site to me and should to the forum admins who should at least take the proper time to review what a commenter noted before editing this forums content.

    Thread Starter JoshNay

    (@joshnay)

    Thanks again egado!

    That may be the problem. I didn’t realize during all my digging that the information was outside The Loop. I’ll work on it tonight and see if it’s indeed the problem.

    looking forward to hear from you 🙂 Good luck!

    Thread Starter JoshNay

    (@joshnay)

    Great! Looks like that was the problem. So far it appears to be working. I’ve tried clearing my DNS cache to make sure and it appears fine in four different browsers (mobile and PC).

    Thanks for all your help! 🙂

    Your Welcome 🙂

    And for the future, write it 100 times: “I’wont (never/ever) mess around with the loop” 😉

    Thread Starter JoshNay

    (@joshnay)

    @seacoast Web Design so that post of yours is basically saying that po.st (who provides my social sharing buttons) is malicious? :/

    According to that same Google link you provided:
    “Has this site hosted malware?
    No, this site has not hosted malicious software over the past 90 days.”

    Please read all of what I posted above. And follow the link now (6/26/2013)…

    http://safebrowsing.clients.google.com/safebrowsing/diagnostic?site=po.st

    What this all may mean is a third party that the site using is injecting the malware…ie, yes, it may well not be your site or their site that ‘hosts’ the malware.

    The important part is:

    Of the 6376 pages we tested on the site over the past 90 days, 13 page(s) resulted in malicious software being downloaded and installed without user consent. The last time Google visited this site was on 2013-06-25, and the last time suspicious content was found on this site was on 2013-06-25.
    Malicious software includes 6 exploit(s), 4 trojan(s). Successful infection resulted in an average of 25 new process(es) on the target machine.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Author link not showing up on posts’ is closed to new replies.