Permalink
-
<?php the_permalink() ?>is what you’re looking for. In most themes it is tied to the post title something like …<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ?></a>If you don’t want the permalink tied to the post title then it’s rather simple to modify the above and manually slip it into your post somewhere such as the end.
That didn’t work… in most blogs the permalink is in the category|comment line at the bottom. My WordPress doesn’t put it there and I don’t see any way to add it.
What theme are you using?
WordPress Default 1.6 by Michael Heilemann
Try by using following code..
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>Hope this will help you..
Where do I put that code? I put it in the post and nothing changed.
I take that back; I put it in the post but instead of saying “permalink” it says “posted in (category)” with the “posted in” underlined like a link. I think it’s the permalink but of course no one would know that.
May I know where do you want to put this permalink in your theme? If I know the exact place I can help you?
How do I put a permalink in a post?
what exactly are you trying to do? Are you trying to link to the current post within that post???? The confusion in this thread is due to the ambiguity in your question.
And if so, why? You can make permalinks show up for ALL posts by using the code already given to you. It goes in your theme files, NOT inside the post.
WHAT are you trying to do, exactly?
I’m trying to add “permalink” to the line at the bottom of each post:
“Posted in(category)|Comments”Which theme file does it go in?
You can use following code to display Permalink in your each post. Hence, you have to edit the
index.phpand obviouslysingle.phpfiles.<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Permalink</a>By putting this code in your theme, you’ll have a link entitled Permalink
It’ll automatically links to the particular post.
I changed the index.php file as you recommended… now I can’t get into my blog at all. Just the header displays. Can’t get into site admin. How do I restore my index.php file?
The topic ‘Permalink’ is closed to new replies.