WordPress.org

Ready to get started?Download WordPress

Forums

Linking a post to a page (2 posts)

  1. soulluciani01
    Member
    Posted 11 months ago #

    How can I link a post to a url? so when the title of the post is clicked it goes to the url i choose?

  2. Sabinou
    Member
    Posted 11 months ago #

    You can make the inside of a post linked to a particular URL, however, when this is a blog post, I don't think this is possible. The very wordpress structure makes that the title of a blog post is the link to the blog post.

    Typically, the call to the title of a blog post is like this :
    <h2>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></h2>

    See ? the_permalink : otherwise, there's not even calling the post from the database.

    Well, if I'm wrong and there's a way, that'll be good to know, though.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.