Add parent ID to body_class

Using the body_class filter // Use the filter ‘body_class’ add_filter( ‘body_class’, ‘parent_id_body_class’ ); function parent_id_body_class( $classes ) { // add parent id number to the $classes array $classes[] = wp_get_post_parent_id( $post_ID ); // return the $classes array return $classes; } Anyway, I recommend you to add some text to the id number, in order to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)