File: //home/rassvet-tk.ru/public_html/wp-content/themes/rassvettk/single.php
<?php
$id = $post -> ID;
$categoryArr = get_the_category($id);
if(in_category(36, $id) || in_category(32, $id) || in_category(35, $id) || in_category(40, $id) || in_category(38, $id)){
header("HTTP/1.0 404 Not Found");
die;
}else{
/**
* The template for displaying all single posts and attachments
*
* @package WordPress
* @subpackage Twenty_Fifteen
* @since Twenty Fifteen 1.0
*/
get_header(); ?>
<style type="text/css">
.overflow_table img{
/* width:100%;*/
height:auto;
}
tbody {
border: 1px solid gray;
}
tr {
border: 1px solid gray;
}
th {
border: 1px solid gray;
padding: 5px;
}
td {
padding: 5px;
border: 1px solid gray;
}
@media (max-width: 768px){
.overflow_table img{
width: 100%;
}
.overflow_table table{
width:100%;
overflow: scroll;
}
}
</style>
<div class="container">
<?if(have_posts() ): while (have_posts() ): the_post(); ?>
<div class="row">
<div class="col-md-12">
<h1><? the_title();?></h1>
</div>
<div class="col-md-12 overflow_table">
<? the_content();?>
</div>
</div>
<?endwhile; else:?>
<p><?echo('Записей не найдено')?></p>
<?endif;?>
</div>
<script type="text/javascript">
</script>
<?php get_footer();
}?>