Forums
Forums / Plugin: Code Snippets / Run on only one custom post type
(@pickme)
4 years, 2 months ago
Hi,
I want to run a script on only one page with a URL query string.
Is this possible?
Thank you
(@bungeshea)
Sure, you can use isset( $_GET['query_string_name'] ) within your snippet to check whether the query string is present.
isset( $_GET['query_string_name'] )
The topic ‘Run on only one custom post type’ is closed to new replies.