caprenter / bcb-website

A place to track issues about the bcb website
GNU General Public License v3.0
0 stars 1 forks source link

Generating the programme link from a presenter page #152

Closed caprenter closed 4 years ago

caprenter commented 4 years ago

https://github.com/caprenter/bcb-website/blob/0e88a8977fdef50f14f44344cf6fd88feee185a3/single-presenter.php#L67

We can use $programme_slug = sanitize_title($prog_link); //Use the inbuilt wordpress function to clean the sting to make a slug from https://github.com/caprenter/bcb-website/blob/0e88a8977fdef50f14f44344cf6fd88feee185a3/functions.php#L221

to make sure that e.g. Angie C's Musical Adventure of Youth Music Live! Showcase work as links from a presenter page when the show name is added as a custom field.