WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7 Modules
[resolved] Not getting permalink just dynamic URL with parameters? (3 posts)

  1. Pete
    Member
    Posted 2 years ago #

    I'm getting the post_url and it's picking up a dynamic URL rather than the exact page URL.

    The URL I need is http://www.domain.com/#panier
    But i'm getting http://www.domain.com/?post_type=projects&p=41

    The theme i'm using has custom post types called Projects and you can click an image on the home page which slides open the project on the home page with the only part of the url changing being after the # symbol.

    http://wordpress.org/extend/plugins/contact-form-7-modules/

  2. Zack Katz
    Member
    Plugin Author

    Posted 2 years ago #

    That's going to have to be custom-coded; the hash tags won't be picked up by any PHP script. You'll need to use Javascript to modify a hidden input value.

  3. Pete
    Member
    Posted 2 years ago #

    Hi, thanks for replying. I actually resolved this by modifying the plugin to use get_permalink(); in place of the original function that got the URL. This worked out perfectly and might be a better function in my opinion than getting the post ID dynamic URL.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags