update templates

This commit is contained in:
Egor Svitin
2019-02-19 12:18:54 +02:00
parent 40adc99c1d
commit a5a58d5614
3 changed files with 6 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ function create_category_type()
'show_admin_column' => true, 'show_admin_column' => true,
'query_var' => true, 'query_var' => true,
'publicly_queryable' => true, 'publicly_queryable' => true,
'rewrite' => array( 'slug' => 'faq/answer' ), 'rewrite' => array( 'slug' => 'blog/faq/answer' ),
); );
register_post_type( 'fac_category_answer', $args ); register_post_type( 'fac_category_answer', $args );

View File

@@ -29,7 +29,7 @@ if ($tIds !== false) {
?> ?>
<div class="content no-pb">
<div class="main-page"> <div class="main-page">
<div class="faq-search"> <div class="faq-search">
<div class="cont"> <div class="cont">
@@ -77,7 +77,7 @@ if ($tIds !== false) {
echo ' echo '
<div class="faq-question"> <div class="faq-question">
<a href="'.get_permalink($post).'">'.$post->post_name.'</a> <a href="'.get_permalink($post).'">'.$post->post_title.'</a>
</div> </div>
'; ';
} }
@@ -90,6 +90,7 @@ if ($tIds !== false) {
</div> </div>
</div> </div>
</div> </div>
</div>
<?php <?php
get_footer(); get_footer();

View File

@@ -7,7 +7,7 @@ get_header();
$post = $posts[0]; $post = $posts[0];
?> ?>
<div class="content no-pb">
<div class="main-page"> <div class="main-page">
<div class="faq-search"> <div class="faq-search">
<div class="cont"> <div class="cont">
@@ -40,6 +40,7 @@ $post = $posts[0];
</div> </div>
</div> </div>
</div> </div>
</div>
<?php <?php
get_footer(); get_footer();