How to setup Archive page in wordpress blog
First create new file archive.php in theme folder.
Now copy all code from index.php where all blog post code and paste into archive.php.
and for title write below function in title to make automate archive title
<h1 class="page-banner__title"><?php the_archive_title(); ?></h1>
and save.
and for description below paragraph add this code
<div class="page-banner__intro">
<p><?php the_archive_description(); ?></p>
</div>
and save
Now go to to user profile add description and check in blog by click author you can see description.
And Now go to posts and click category and click category name and add description for that and check category description in Category archive.
Comments
Post a Comment