How to assign php file(template) to several pages with same prefix page name/slug
Can I assign WP php file (specific template) to several pages with same prefix name/slug using (if is_page(){}) ?
If it's possible it could be useful.
Is there a php function to do like css selector : [class*=activity-]
for example ??: if(is_page('[activity-]')){ include activity.php; }
the goal is to not repeat 4 times the same function :
if(is_page('activity-sport')){ include activity.php; }
activity.php assign to :
website/activity-sportwebsite/activity-culturewebsite/activity-charitywebsite/activity-work