• Resolved marmelade

    (@marmelade)


    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!

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    Thread Starter marmelade

    (@marmelade)

    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?

    jabl

    (@jabl)

    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() ?>"

    Thread Starter marmelade

    (@marmelade)

    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.

    prissed

    (@prissed)

    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)…

    Thread Starter marmelade

    (@marmelade)

    Oh, probably true..

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

    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/&lt;?php the_permalink() ?> if you want to show the referrers for each post.
    Any opinion about my idea is welcome.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Links in and permalinks’ is closed to new replies.