WordPress.org

Ready to get started?Download WordPress

Forums

Redirecting Page (4 posts)

  1. hellwaIker
    Member
    Posted 4 years ago #

    Hello,
    I want to do this:
    when you are in single page view, that is when you click post title and get to page where only this post is displayed in full.

    so when you are in this page, IF there is certain custom field for this post, I want page to redirect to the value of this custom field.

    I figured out everything but redirection part.

    I'm editing Singlepost.php and would like to redirect from there.
    but by the time singlepost.php code is processed Head tags are closed, so I can't use meta refresh, and I cant use Header function either.

    how can I make this work ? ):

    thx in advance

  2. MichaelH
    Member
    Posted 4 years ago #

    May not be exactly what you want but look at http://wordpress.org/extend/plugins/page-links-to/

  3. hellwaIker
    Member
    Posted 4 years ago #

    umm thx but its not what I'm trying to do.

    what I have is that WP post directs you to forum topics where you can discuss and view full version of post. [I know that is not most efficient use of WP, but I'm not site admin =P]

    so I have forum link in custom field, and what I want to do is, if users somehow gets to single page view of post, IF that post has forum link attached to it, redirect to happen.

  4. MichaelH
    Member
    Posted 4 years ago #

    Yep, that's what that plugin does. On a post it redirects when accessing the post in a single view.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.