
A client of mine has been messing with the permalinks in my WordPress site.
The Archives used to work, Now they dont.
I can see the URL needs to be : 2017/03
But when clicked, It produces the URL date/2017/03 – Which in turn throws a 404 error.
Is there a setting I can set in the Permalinks part of WordPress?
It’s currently set to postname : /sample-post/
Or is there anything I can make in the functions file to take away the word date from my URL.
My current code is as follows :
<ul class="gray-border" style="padding-top: 5px;">
<?
// Get Archives'
$args = array (
'type' => 'monthly',
'order' => 'DESC',
'limit' => '6'
);
$archives = wp_get_archives( $args );
?>
</ul><!-- /.gray-border -->
This site brings in time tides also, So the permalinks have been slightly modified.
See screenshot :
Read more here: WordPress wp_get_archives – Links producing 404 Error