How to create a filter and add query params to all links
Assuming you mean $post->ID, you can use the post_link and post_type_link filters to append your query string. We’re using the add_query_arg() function to do this: /** * Modify the posts navigation WHERE clause * to include our acceptable post types * * @param String $post_link – Post URL * @param WP_Post $post – Current Post … Read more