Merge pull request #2412 from bivis/wordpress

update templates
This commit is contained in:
gregory-p
2019-02-19 12:21:37 +03:00
committed by GitHub
3 changed files with 6 additions and 4 deletions

View File

@@ -63,7 +63,7 @@ function create_category_type()
'show_admin_column' => true,
'query_var' => true,
'publicly_queryable' => true,
'rewrite' => array( 'slug' => 'faq/answer' ),
'rewrite' => array( 'slug' => 'blog/faq/answer' ),
);
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="faq-search">
<div class="cont">
@@ -77,7 +77,7 @@ if ($tIds !== false) {
echo '
<div class="faq-question">
<a href="'.get_permalink($post).'">'.$post->post_name.'</a>
<a href="'.get_permalink($post).'">'.$post->post_title.'</a>
</div>
';
}
@@ -90,6 +90,7 @@ if ($tIds !== false) {
</div>
</div>
</div>
</div>
<?php
get_footer();

View File

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