• Resolved davidhelp

    (@davidhelp)


    Hi,

    I would like insert permalink %postname% in short code [mbhi_hours location=”%postname%”]

    For example:
    I have post on this URL – http://www.forum.com/themes/this-is-test-post. I have same name as %postname% for Location in Business Hours Indicator (this-is-test-post). If i use this short [mbhi_hours location=”this-is-test-post”] its working. But if I insert %postname% as location, dont work [mbhi_hours location=”%postname%”].

    Please, is any opinion, what insert actualy URL from display post to mbhi [mbhi_hours location=”?????”]?

    I try code from this post https://wordpress.org/support/topic/how-display-permalink-in-posts-text/ but dont work.

    Well thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Wombat Plugins

    (@maartenbelmans)

    Hi David,

    I’m sorry, but what you are looking for is not possible at this point. Is there a specific reason you want to write location=”%postname%” and not just location=”test-post”?

    Thread Starter davidhelp

    (@davidhelp)

    Yes, because i will be approximately 1000 posts and every posts need own open hours. The best identificator for this quantity is Location name set as URL postname, and into the post insert only one universal code in every posts [mbhi_hours location=”%postname%”]. Or is any other automaticaly method?
    Thanks

    Having the same idea and hope for the plugin!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘How insert permalink in shortcode’ is closed to new replies.