Something is adding date structure to permalinks rather than the title
-
I’m not sure what I did to my permalink structure, but somewhere along the way I somehow managed to add the date in front of where my titles are supposed to be. So the format looks like this now:
localhost/wordpress/2018/03/18/topic-title-is-showing-here/
It should look like:
localhost/wordpress/topic-title-is-showing-here/
I have a funny feeling it’s my $currentPage variable which reads like this:
$currentPage = get_query_var('paged'); $photo = new WP_Query( array( 'post_type' => 'post', 'posts_per_page' => 12, 'order' => 'DESC', 'category_name' => 'photography', 'paged' => $currentPage ) );
Can anyone out there lend a hand in figuring out why this might be happening?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Something is adding date structure to permalinks rather than the title’ is closed to new replies.