How do WordPress permalinks work?

I am not sure on your terminology there (“plan” vs “post type” permalinks bit). In general the rules are generated and persistently saved when you change anything in Permalink Settings. Or something else like plugin initiates the process. When you change settings you “previous” state ceases to exist, rules are generated for the current and … Read more

Remove link function from oembed image or video

WordPress has very limited control over the embedded content. When you put URL to YouTube video (for instance), WordPress calls the oEmbed URL for that service (YouTube in this case), and YouTube returns the complete HTML for embedding the content. That can be a different thing, including IFRAME, and each service has own oEmbed content … Read more

Filter posts on new page

You can do this with a combination of rewrite endpoints and the pre_get_posts action. First, your taxonomy has to be registered with some specific rewrite arguments to enable this, particularly, ep_mask: register_taxonomy( ‘customtax’, ‘posttype’, array( ‘rewrite’ => array( ‘slug’ => ‘custom-tax’, ‘hierarchical’ => true, ‘ep_mask’ => EP_ALL ), // other args… ) ); You can … Read more