Question
I'm trying to update my link from this: https://dev.brunchwork.com/next-event/?eb_event_id=106098978902 To this: https://dev.brunchwork.com/next-event/[guest_name_here]/[event_id_here] Following this discussion, I was able to come up with this code: In my functions.php: /*rewrite rule*/ function custom_rewrite_rule() { add_rewrite_rule('^next-event/([^/]*)/([^/]*)/?','index.php?page_id=69&guest_name=$matches[1]&event_id=$matches[2]','top'); } add_action('init', 'custom_rewrite_rule', 10, ...
0
, , 5 days 0 Answers 18 views

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 ...
0
, 3 weeks 0 Answers 32 views