I am trying to send value from one page to another page in WordPress as i do not want to repeat logic to fetch that value in other page.
I am not very proficient in WordPress/PHP, if i have to do that in Java, i will create a hidden field and pass that value to server side code and from there can again set it as a request parameter, not sure how to achieve that in WordPress with help of PHP.

I have a page and a link "see more" on right hand navigation panel,once user click link, he/she is being redirected to another page ,but I need to show information based on values from the parent page

User is being redirected based on some rewrite rule and i am picking few values from using `get_query_var()`.

I can do that by adding that parameter as query parameter, but i do not want to change current URL being generated.

Here is more information about my use case:

Site on which i am working is related to travelling and i am showing destination recommendations on few pages on its right hand side bar, for the UI layout, i am not showing all recommendations but few say *"10"* and than i am giving a link saying *"Check all recommendations"*.

When user land on certain page, i am fetching categories assigned to that post and it is possible to have multiple categories say

 1. hill-station
 2. adventure etc

So based on these categories, i am showing them recommendations, so when user click on the click i want to pass this category information to next page so as i can show them eligible destination list.

 


Is there any other way to pass value to new page except for setting value in session?