Saving category ID in global variable
-
Hello,
I’m having a problem and don’t know much about PHP.
I’m having a category page that shows a list of posts in multiple subcategories. I can navigate between the subcategories (always getting a new filtered list of posts) using this code.But if I click on one post, I would like to open that post, but keep the filtered list of posts I had before. But WP kind of loses the value for the subcategory and doesn’t remember the subcategory i selected before.
Is there any way to save that ID in a global variable?
Would be very happy for any help!!!
Thanks, Karina
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Saving category ID in global variable’ is closed to new replies.