Duplicated posts on category page

OK, so the code does exactly what it is supposed to. In your archive.php you do this: while ( have_posts() ) : the_post(); get_template_part( ‘loops/loop’, ‘archive’ ); So for every post (both of them) you include loops/loop-archive.php file. And inside that file you don’t display only the current post from global loop, but you make … Read more

Get parrent category name

You could have a category description. For example the Cat 4 will have the category description as : From Cat3 in Cat 1. You add the category description when you edit the category inside of WP > Posts > Categories Then to display the category description use this PHP code inside of your archive.php theme … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)