Add CSS and JS files of the template post on a WordPress page

In your theme’s file functions.php: add_action(‘wp_enqueue_scripts’,’STACK_356524_add_css_js_on_page’,99); function STACK_356524_add_css_js_on_page(){ global $post; if($post->post_type==’page’) { // check if the current wp object is a `page` also is_page() can be used: see https://codex.wordpress.org/Conditional_Tags wp_enqueue_script( ‘js_handler’, ‘url_of_your_script’, array(), ” ); wp_enqueue_style(‘css_handler’,’url_of_your_style’,array(), ‘1.0.0’, ‘all’); } } Up to you adjust the correct path to the .css and .js you need to … Read more

link to edit a post has empty target

I just found some kind of workaround. I set the right “edit options” for this user. To be honest I do not know what this right means, but the user is now able to edit all the posts – so the links now have a valid target (href) Strange behaviour. Somebdoy can explain this?

Posts order in grid

As I said in my comment, if 2-1-3 / 4-1-5 instead of the desired 2-1-4 / 3-1-5 is also OK for placement, you can do this quite easily with CSS grid. MDN has a lot of resources about this topic. Check out this fiddle, where I changed a MDN example a bit to your use … Read more