<?php /* Template Name:视频 */ //header("Location: /video/culture/"); get_header(); $post_id = get_the_ID(); $post = get_post($post_id); $title = $post->post_title; $where = "name = '{$title}'"; //根据栏目标题匹配分类 $videoCat = PtpVideoDB::getCategoryRow($where); $cat_id = $videoCat['id']; $where = "category_id = '{$cat_id}'"; $videos = PtpVideoDB::getVideoRows($where); ?> <div class="centerdiv home_bg"> <div class="center_topimg"> <p class="top_img_draw"></p> </div> <div class="center_div"> <div class="p2"> <div class="p2-1 clearfix"> <?php get_sidebar('video-sidebar'); ?> <div class="company_info">