Post slug changed using code doesn’t reflect on editor when post is published

I’ve a CPT (lets say Event) with a custom date field (start_date). I’m trying to generate the post slug (post_name) as start_date + post_title (separated by -). I’ve tried using the filter wp_unique_post_slug as well as wp_insert_post_data to modify post_name. When I publish the post, the slug gets changed internally but it doesn’t reflect on…

How do I render pages with dynamic content from a json feed

I am building a module to show a job/vacancy-list and the detailpage of a job, the data is fetched from a remote json feed. Currently I have the following routes to a controller in my module return [ ‘job’ => ‘job-offers-module/job/process’, ‘job/detail’ => ‘job-offers-module/job/detail’, ]; And loading twig templates eg. namespace modules\joboffersmodule\controllers; use Craft; use…