Update category.php for 2.0.0
- Keep the existing structure, the .entry-title.search heading and the_content(). - Escape the category name and use the super-simple-wp-theme text domain.
This commit is contained in:
1 parent
a26823f166
commit
3912ecc7e2
1 file changed
+15
-5
+15
-5
@@ -1,11 +1,24 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* Category archive template.
|
||||||
|
*
|
||||||
|
* @package Super_Simple_WP_Theme
|
||||||
|
*/
|
||||||
|
|
||||||
get_header();
|
get_header();
|
||||||
|
|
||||||
printf("<h2 class=\"entry-title search\">" . __("Kategori: ", "textdomain") . get_queried_object()->name . "</h2>");
|
$sswt_heading = sprintf(
|
||||||
|
/* translators: %s: category name. */
|
||||||
|
__( 'Kategori: %s', 'super-simple-wp-theme' ),
|
||||||
|
get_queried_object()->name
|
||||||
|
);
|
||||||
|
?>
|
||||||
|
<h2 class="entry-title search"><?php echo esc_html( $sswt_heading ); ?></h2>
|
||||||
|
<?php
|
||||||
|
|
||||||
if ( have_posts() ) :
|
if ( have_posts() ) :
|
||||||
while (have_posts()) : the_post();
|
while ( have_posts() ) :
|
||||||
|
the_post();
|
||||||
?>
|
?>
|
||||||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
|
<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
|
||||||
@@ -14,10 +27,7 @@ if (have_posts()) :
|
|||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
endwhile;
|
endwhile;
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
get_footer();
|
get_footer();
|
||||||
|
|
||||||
?>
|
|
||||||
Reference in new issue
Block a user