WordPress.org

Ready to get started?Download WordPress

Forums

Passing template tags trough a form - problem (2 posts)

  1. MAzCastro
    Member
    Posted 4 years ago #

    Hi guys!

    I can't seem to get this working:
    (...)
    return '<input type="hidden" name="articleURL" value="' . get_permalink($post->ID) .'" />'
    (...)

    Problem is the link ins't passed trough the form after submission.

    Is there any other way to pass template tags trough a form?

    Cheers!

    MAC :)

  2. MAzCastro
    Member
    Posted 4 years ago #

    Resolved!

    Silly me. This is the correct syntax I should have be using:

    <input type="hidden" name="articleURL" value="' . get_permalink() .'" />

    And it's done.

    MAC ;)

Topic Closed

This topic has been closed to new replies.

About this Topic