Support » Everything else WordPress » Load dynamic content to page

  • Resolved patmor

    (@patmor)


    Hello,

    I have a series of form shortcodes, ex. [form-1], [form-2], [form-3], … [form-n], for which I’ve successfully created a menu. Instead of creating n pages, one for each item, I would like to create a single page which will dynamically load the item selected from the menu.

    I was looking for a plugin that might achieve this, or does anyone have an idea how?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • www.yoursite.com/form?f=1
    <?php echo do_shortcode["form-'.$_GET['f'].'"]; ?>

    Super bare bones example.

    • This reply was modified 1 year, 8 months ago by tugbucket.
    Thread Starter patmor

    (@patmor)

    @tugbucket

    It was getting too complicated so I eventually created a new menu and made things simpler from there.

    Thanks for the help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load dynamic content to page’ is closed to new replies.