Fatal error due to file permissions

I would suggest taking a back up of your site, and then replacing the WordPress core files. Download a fresh copy from word press.org and replace the files in the WP–admin folder and WP–includes folder. You can also replace any files in the immediate public_HTML folder excluding WP–config.php. This might resolve the issue. Additionally, I … Read more

How to put title slug into content when create a new post?

You have to use the_content filter. Following example is to just adds a featured image set from the single post Edit screen which displays before the content on single posts only. You can change it to display title and permalink. add_filter( ‘the_content’, ‘featured_image_before_content’ ); function featured_image_before_content( $content ) { if ( is_singular(‘post’) && has_post_thumbnail()) { … Read more

Change body_class() PAGE to HOME

Solved with: <?php add_filter( ‘body_class’, ‘alter_body_class’, 20, 2 ); function alter_body_class( $classes ) { foreach( $classes as $key => $value ) { if ( $value === ‘page’ ) { unset( $classes[ $key ] ); } } return array_merge( $classes, array( ‘home’ ) ); } ?>