I think this is what you are trying to accomplish?
$html .="<a id='test' rel="nofollow" href="https://example.com/cars/?aff="". echo get_the_title( $post_id ) ." target="_blank">";
Related Posts:
- wp_remote_get() and javascript/noscript situation
- Order & Orderby Parameters
- Add a class with body_class to a specific url with parameter
- How to change window ratio in teachpress “tplist”
- Why “?v=hash” is added to my URLs? [closed]
- How to create a shortcode with 1 parameter (atts)
- use query string in URL to display content on the page
- Open WordPress ‘Add New Post’ admin page with parameters set via $_GET
- Pulling a parameter out of the URL of a WP link without “?” or being sent to a different page
- get_the_title($postID) OR get_the_title()?
- CPT archive 404ing when using a custom taxonomy name as a variable
- Making extra parameters optional
- Why does rewrite rule work for page not for custom post type post?
- oEmbed vimeo with add_query_arg parameters not inserted to HTML
- Determine WP_Query parameters from URL
- WordPress ajax function parameter value not being passed
- Load custom template for specific GET parameter
- How to get variables from fucntion.php to my plugin files
- Create URL with parameter for JQuery toggle status
- How do I pass arguments for multiple functions hooked to a single action?
- Query string parameters from custom fields, inconsistent results
- How to Use Parameters with a Do_Action Function Within PHP Tags
- Changing WP_Query params with url Query Var
- Pass GET params to URL from a main menu item
- Get URL Param Plugin and Inserting Result in Widget Code
- Dynamically change page title from URL param
- How to add parameter to wp_enqueue_script?
- Pass additional parameter in the URL
- Using several add_action with parameters inside a class
- Rewrite custom post type URL parameters
- Adding parameters to password reset key
- 404 error when passing “cat” parameter to URL
- Assign category to new post via URL
- Making extra parameters optional
- Using different parameters for different queries with pre get posts in functions.php
- Website Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘Wppr_Public’ does not have a method ‘amp_support’
- post_parent array doesn’t work
- Passing parameters to a static front page
- HTTP 403 Error when passing parameters to URL
- Does anyone know all parameters of get_comments()
- missing argument 2 when passing arguments to add_action
- How to parse a custom url (within WP site) and obtain params passed to that URL
- why do I have to use required parametres?
- Passing values through url for checkbox fields with same name to get?
- unique post in “$args” of wp_query display more than one post
- Handle multiple parameters in filter
- Custom HTML title based on URL parameter
- shortcode – multiple instances of same parameter name in one shortcode instance
- How to get setting from separate file?
- How to pass menu slug as a variable to wp_nav_menu?
- Sortby parameter to sort users
- how to load posts to a custom post template after using template_redirect or template_include
- Why won’t the action hook wp_head accept parameters?
- How do I pass $in_foooter to wp_enqueue_script() without passing other params?
- Adding a Tag Parameter / Filter to My Shortcode
- Pre-existing arguments when using queries
- How to pass username in affiliate link in wordpress website
- Warning at top of website & top menu gone
- How to get a page url segment on wordpress?
- Different url to same page (with dynamic content)
- Unable to display multiple parameters from url by javascript through shortcodes
- Append a parametter at first or last to a certain URL
- Add a paramter to page url
- How to pass parameters in wordpress shortcode?
- Problem parsing long parameter in shortcode
- What’s the right way to validate JSON data coming from an AJAX POST request?
- How do i fix this “call_user_func_array()” error
- How can I pass instance via apply_filters as a parameter?
- wordpress automatic URL ‘page’ parameter rewrite
- Add more than one query parameter onto wordpress url
- How to ignore GET parameter that’s the same as a CPT slug?
- add_action with associative array
- Url parameter going to 404 not found
- How Can I Display the Last Modified Date for User Profiles on WordPress?
- Add addtional page parameter before loading the page
- Shortcode not interpreted if parameter set
- Pass post title as URL parameter
- Why get_terms() behaves strangely when being called in admin (for use in meta box)?
- User Affiliate Token Generator?
- Capture and display users name
- How to display a page dependent on a url parameter supplied by a form/button page?
- YearMonth datequery
- Loop 1 user randomly
- Get parameters and custom page template
- Redirect based on $_GET parameters
- Using permalinks with parameters
- How to change this internal image link parameter using PHP?
- How to pass parameters thru URL?
- How to pass parameter that ends up being part of a class name with wordpress shortcode
- Custom URL segment parameters for posts
- Duplicate pages with ?s parameter
- Custom Post Type URL Rewriting
- Adding Parameters to get_comment
- Post AND page parameter for WP function
- How to use query string in URL to display content on the wordpress page
- Is it possible to change a shortcode parameter based on a media query?
- help me remove this additional parameter in url
- What are the parameters are used in add_action and filters?
- Shortcode to include PHP file, pass various parameters to include?
- How to handle Ajax Calls, when using same shortcodes (with different parameters, e.g. ‘post-type’)?