WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Links in and permalinks (8 posts)

  1. marmelade
    Member
    Posted 9 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.

    Thanks!

  2. Kafkaesqui

    Posted 9 years ago #

    There are several referer-related plugins here:

    http://codex.wordpress.org/Plugins/Statistics

    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
    Member
    Posted 9 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
    Member
    Posted 9 years ago #

    The internal function that returns the permalink is

    get_permalink()

    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
    Member
    Posted 9 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
    Member
    Posted 9 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
    Member
    Posted 9 years ago #

    Oh, probably true..

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

  8. Fmustang
    Member
    Posted 7 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/http://www.yoursite.com/
    or
    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