Question
I would like to create an endpoint for a custom field. For example, I already have a custom 'competition' post type for which rewriting is working great and resolving at website.com/competitions/my-competition. Within that competition I have award categories created using Advanced Custom Fields,
0
, Kevin Nugent 3 years 0 Answers 87 views

Question
I'm adding my query arg as such: add_filter( 'query_vars', function( $qvars ) { $qvars[] = 'my_query_var'; return $qvars; }); And when I do: add_action( 'init', function() { $string = get_query_var( 'my_query_var' ); echo( $string
0
Daniel M 3 years 0 Answers 77 views