Adding pretty query parameters

A custom post type named shooting has a field (with ACF) with plenty of images. Those are listed on the single.php of the CPT and one of those images is displayed in full-ish size. I currently have URLs like shooting/foo-bar/?image=1 where 1 is the index (not ID) of the image that should be displayed large.

Is there a way to get prettier URLs like shooting/foo-bar/1 with WordPress? Or would I have to write a custom rewrite-rule for that?

Related posts

Leave a Reply

1 comment