[resolved] Links in and permalinks (8 posts)

  1. marmelade
    Posted 11 years ago #

    I've seen some people have referrers linked, and I was wondering if anybody knows how to do that. And I also, by accident, deleted the permalinks, so I'm hoping somebody could post the code.


  2. Kafkaesqui

    Posted 11 years ago #

    There are several referer-related plugins here:


    As for your permalinks, what do you mean by "deleted?" If it's your .htaccess, just generate the rewrite code again by clicking "Update Permalink Structure" under Options > Permalinks.

  3. marmelade
    Posted 11 years ago #

    Thanks, for answering my referral question.

    The permalink issue was that the topic of each post are normally linked to the permalink of that post, and I deleted that. What is the code for linking to posts?

  4. jabl
    Posted 11 years ago #

    The internal function that returns the permalink is


    Just envelop the headline of a post in an anchor element (a) and set the href-attribute to:

    href="<?php echo get_permalink() ?>"

  5. marmelade
    Posted 11 years ago #

    Thank you! Just what I needed =)

    I still can't find a decent referrer plugin. I want one without huge pictures and otherwise just plain text.

  6. prissed
    Posted 11 years ago #

    You oughtta be careful with displaying referrers on your site, though. My logs show lots of referrers coming from "adult" and travel sites (hoping to catch on those referrer links...same principle as trackback and comment spam)...

  7. marmelade
    Posted 11 years ago #

    Oh, probably true..

    I haven't even gotten to understand what trackbacks are.. =P

  8. Fmustang
    Posted 9 years ago #

    Why not displaying referrers with the help of technorati instead of your pages? This way you can still promote the sites linking to yours and not be penalized by spammer websites.
    That's what I am doing and here is how the link looks like:
    http://www.technorati.com/search/<?php the_permalink() ?> if you want to show the referrers for each post.
    Any opinion about my idea is welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic