• Hey guys,

    I’ve searched a lot on this WordPress forum and couldn’t find an answer to my problem.

    Here’s what I’d like to do: When writing a new post, I’d like to have another (input) bar in my WordPress panel where I could insert a link to an external webpage.

    That way, when the post is published, the link would be associated with the title. So when we click on the title, it would open a new tab/window that would take us to another site.

    Example: https://www.poil.ca (a site I run, but do not own). When we click on the title of an article, it brings us to an external webpage that was inserted while writing the article.

    I’m not the first person to ask this (here is another thread about the subject), but since the thread is quite old, I’d figure I’d ask if this is, in 2009, possible.

    Thank you all for your time.

    Justin

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter justin01

    (@justin01)

    I’ve searched for several hours now and I still can’t find an easy solution.

    So if there’s anobody out there who knows what to do or how to do it, I’d really appreciate.

    Thanks.

    Thread Starter justin01

    (@justin01)

    I’m doing one last bump… just in case someone else, who didn’t see my question, would happen to have a solution.

    Thanks.

    Justin

    Thread Starter justin01

    (@justin01)

    Hey guys,

    I just wanted to let you know that I resolved the problem.

    Here’s how I did it, with WordPress 2.7:

    First, I followed this tutorial: https://www.istudioweb.com/hacking-wordpress-theme-external-url-for-post-title-2008-01-12/

    But while reading it, I noticed that my WordPress theme didn’t have any “functions.php” file (if yours does, then everything under this won’t be useful for you).

    So I did a little search in my WordPress folder and I noticed that there was a “functions.php” file in the “wp-includes” folder.

    So I went there, added the code at the very top (just after the “<?php” and the comments), added the code from the tutorial in my index.php and…all worked fine!

    Like it said in the tutorial, I added the “url1” to the field name and put my URL in the “Value” field. Since then, everything worked just fine.

    Hope this helps future WordPress users that don’t happen to have a “functions.php” file directly in their theme folder.

    I had the “reflex”, like many of us would, to try and add the code in the theme’s .php files (wich, logically, didn’t work). And that made me lose a lot of time.. ??

    Cheers,

    Justin

    Thanks for sharing the info man that’s kind.
    Can you get the links to open in a new window? I use a plug-in called “Page Links To” on my site FreeStuff.me but the open in a new window feature is simply not working with WP 2.7. Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Title as custom/external link!’ is closed to new replies.