Thursday, 1 October 2020

Wordpress Functions for certain page

  1. add this on functions.php 


function sv_hide_header_footer_for_page() {

  if( is_page( 2662 ) ) {

echo '<div class="coupon-notice">Thanks for visiting! As a gift, here\'s a coupon code you can use in our shop: <code>20off</code></div>';

}

}

add_action( 'wp', 'sv_hide_header_footer_for_page' );

Cara-Cara Untuk Bypass/Solve: Database Problem.

  Warning: Attempt to read property "post_status" on null in /home/xxx/public_html/wp-admin/includes/template.php on line 2298 Wa...