Sure put this in your template, in your loop that displays posts…of course you may need to change link_url to your custom field name.
<?php
$link = get_post_meta($post->ID, 'link_url', true);
if ($link){
echo '<a href="'.$link .'">Discuss this post in forum...</a>';
}
?>
Stepping Into Template Tags
Stepping Into Templates
Template Hierarchy
Thnx for reply bud.
How do I do this though? Where abouts do I paste that code and how do I create custom field for it etc 🙁
I created my theme using Artisteer btw.
You create the custom code when writing a post.
You put the code in The Loop of the Template that is displaying your posts.
Review:
Custom Fields
Stepping Into Template Tags
Stepping Into Templates
Template Hierarchy
Dude im a n00b when it comes to this, Can you explain it simpler, step by step maybe bud please.
Does this allow be to add a different forum link each time i need to or is it a set link that is added to each post?
I didnt make it clear in first post sorry, What i need is to be able to choose a different url for each post which automatically gets added to a “Discuss this news in forum…” link.
I have a RSS plugin within my vbulletin forum which creates a topic from my blog via RSS so would be good to be able to add the created topic link back on the blog so that people who wish to discuss the topic have a direct link to it.
Is this possible via the custom field?
I know about the custom field instructions but can you answer whether not this will allow me to change the url each time or will it just add the same link to all my posts?
Just want clarification before I do anything so im not wasting my time.
Does it allow me to simply paste teh url I want into the field and it automatically inserts it with the custom title for link?
If you want the same link in every post then just edit your template that displays posts and put the link there.
If you want a different link for each post, then use a custom field.