use Permalink then if the Category has article it right or it wrong
-
use the Permalink if the Category has articles then it will be right show
but if the Category has no article then it will be wrong show
“Not Found
Sorry, but you are looking for something that isn’t here. “
but in the archive.php
archive.php
<?php if (have_posts()) : ?>
….
<?php else : ?>
<h2 class=”center”>Not Found</h2>
<?php endif; ?>
just “Not Found”
only in the index.php have
“Not Found
Sorry, but you are looking for something that isn’t here.”index.php
<?php if (have_posts()) : ?>
….
<?php else : ?>
<h2>Not Found</h2>
Sorry, but you are looking for something that isn’t here.
</div>
<?php endif; ?>if use the
Default
? https://localhost/?p=123
the Category has no article it will be right show
- The topic ‘use Permalink then if the Category has article it right or it wrong’ is closed to new replies.