conditional tags – Target a page with query
Question
I have those 2 pages that are created from a plugin:
1.https://www.domain.com/custom-page/?type=story
2.https://www.domain.com/custom-page/?type=movie
And i have been trying to target them
if (is_page ('custom-page') && ... )
with get_query_var
by trying to pass the $qvars
to add_filter( 'query_vars'
but i am not sure how to do that.
Could some one help me how i could target those 2 pages?
Thank you
0
10 months
2022-04-03T15:22:17-05:00
2022-04-03T15:22:17-05:00 0 Answers
0 views
0
Leave an answer