How to use endpoint, but remove/rewrite endpoint base?

I think the add_rewrite_rule is the correct route to go and I think what you have is correct also barring the Regex. Try substituting what you have currently for this => ^my-page\/([0-9]+)\/?. Full code below: function setup_filter_rewrites(){ add_rewrite_rule(‘^my-page\/([0-9]+)\/?’, ‘index.php?pagename=my-page&my_var=$matches[1]’, ‘top’); } add_action( ‘init’, ‘setup_filter_rewrites’ );

How to display a page dependent on a url parameter supplied by a form/button page?

If you would show pdf in content dynamically, which page would you like to show page, post or wherever. You have to echo your shortcode in template file. For example, you have to print like below <?php echo do_shortcode(“[shortcode pdf=”. $_REQUEST[“pdf_id’] .”); ?> http://yourwebsite.com/post-title/?pdf_id=20 //your url would be like that

Capture and display users name

Use wp_get_current_user to get the current user (if any) then check or update the display name – update_user_meta or wp_update_user. When you have a user, you’ll probably want to set a flag on the user’s meta for after they have filled out their name, or prompt otherwise. How/where all this would go is really a … Read more

Pass post title as URL parameter

I think adding the new link by hook will be the best way. function new_nav_menu_items($items) { global $post; $post_slug=$post->post_name; $landinglink = ‘<li class=”home”><a href=”‘ .get_page_link(‘YOUR_LANDING_PAGE_ID_HERE’).’?from=’.$post_slug.'”>’ . __(‘BLAA’) . ‘</a></li>’; $items = $items . $landinglink; return $items; } add_filter( ‘wp_nav_menu_items’, ‘new_nav_menu_items’ ); Change ‘YOUR_LANDING_PAGE_ID_HERE’ with landing page ID. Cheers

Shortcode not interpreted if parameter set

Not enough code in the question to pinpoint the problem, but I would call what you are trying to do “shady”. Usage of do_shortcode should be confined to extreme cases when it is impossible, or extremely hard, to do anything else, as using it is the less evil equivalent of using eval. What you should … Read more