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
Related Posts:
- Why “?v=hash” is added to my URLs? [closed]
- use query string in URL to display content on the page
- Pulling a parameter out of the URL of a WP link without “?” or being sent to a different page
- Dynamically change page title from URL param
- 404 error when passing “cat” parameter to URL
- How to add URL-Parameter for Javascript Widgets?
- HTTP 403 Error when passing parameters to URL
- WordPress get parameter ‘unapproved’ and ‘moderation-hash’
- How to parse a custom url (within WP site) and obtain params passed to that URL
- Passing values through url for checkbox fields with same name to get?
- Custom HTML title based on URL parameter
- How to get a page url segment on wordpress?
- Different url to same page (with dynamic content)
- Add a paramter to page url
- Why “?v=hash” is added to my URLs? [closed]
- Add more than one query parameter onto wordpress url
- Set A Cookie To URL Parameter, Pass Cookie From Page To Page To Alter Post
- Use URL parameter to create dynamic content
- How to pass parameters thru URL?
- Duplicate pages with ?s parameter
- How to use query string in URL to display content on the wordpress page
- help me remove this additional parameter in url
- Difference between esc_url() and esc_url_raw()
- Remove All Query Arg
- Run WordPress frontend and backend in different domains
- How to set global variable in functions.php
- Why does WordPress automatically redirect URLs with the parameter “name=” to a different page?
- Adding a hook to ‘parse_request’ so that siteurl/pagename/xyz ignores “xyz”
- How to have numeric URLs in Posts and Pages
- Why WordPress automatically removes http from the url of my website’s sub domain?
- WordPress Move to SSL How to Update Media Assets to HTTPS?
- Moving wp-content outside of web root?
- Adding target and _blank as it’s value to the allowedtags
- permalink for category pages and posts
- Get url from file uploaded in Media Library
- Allow UTF-8 characters in the user slug part of URL
- WordPress converting ../url to http://../url
- home_url(); showing current page instead of site address
- Can URL remain the same if migrating from Drupal?
- How to add domain security certification, in WordPress website?
- Query string parameters from custom fields, inconsistent results
- Imported thumbnails have incorrect URL
- Pass GET params to URL from a main menu item
- Is it necessary to check for `content-type` in headers?
- How to allow — in category name
- Request parameters in $_GET do not match URL called
- WordPress custom search url
- The requested URL was not found only on localhost
- Allow Chinese character on post URL slug
- Assign category to new post via URL
- How can I change a media attachment URL/slug, so that I can use that slug for a page?
- Problem with utf8 link
- remove query string from homepage url
- Twitter shortlink 404 not found [closed]
- Remove Trailing Slash from Category Base and Tag Base
- How to handle this URL Structure. Keep getting “page not found”
- WP URL /icons returns 403 forbidden error
- Get root folder without domain
- wordpress.com website url structure [closed]
- How to remove my website link when adding a link?
- How to make pages slug have priority over any category
- How to call for bloginfo inside function in functions.php?
- Website Address Keep redirect to website after migration attempt
- Random string added end of the url blog page wordpress [closed]
- Blog post – single.php url
- WordPress File URL Path Incorrect
- Adding more onto an esc_url [closed]
- What is the best way to revert to www version of domain name?
- How can I insert a dynamic URL in my email template?
- Block registration by URL referrer?
- Localhost access after changing URL
- Make unique url to unlock a post
- How to get previous and Next Post Url in the_post_navigation
- Changing siteurl in the database not working
- Why my WordPress website homepage automatically adding cs_preview=true query parameter to the url?
- URL redirects of webpage
- What is this extension on mu web URL?? It leads to a blank page. what is causing it/?
- Create 600 links to separate files on google drive
- Incorrect page shown
- Cant access my wordpress.org locally
- I changed the URL [closed]
- URL Structure for translated articles
- Custome home page url
- Unable to login after changing WordPress site url
- Inject dynamic strings in urls
- Private Messages between users
- Navigation and Permalink not getting correctly
- How to get the correct URL on my wordpress site?
- How to redirect WP post with a specific word in the URL
- Duplicate content with the same URL, google authorship
- Making a site URL
- Avoid too long words in a post title, post content or comment but only if its not a url
- Change URL to filter posts
- Modify WordPress to not replace + (plus) characters from URLs?
- Is There a Way to Schedule URL to Content Updates?
- I changed my url and cant access my site, Help?
- Accidentally changed the url
- Dynamic Buttons According to URL parameter
- WordPress Address and Site Address differ
- /?clearcache=1670318470 showing up in URL after client logs in