• Is it possible to make URL address a shortcode parameter?

    let’s say I have a shortcode [shops city=”<–here goes parameter from URL”]

    Regards

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Sure, see Function Reference/add shortcode. In particular note the examples using attributes and content. While the examples are trivial, the basic concept is illustrated. You callback function can apply whatever convoluted logic is required and return any content needed to replace the shortcode occurrence in the content.

Viewing 1 replies (of 1 total)

The topic ‘URL as shortcode parameter’ is closed to new replies.