Both parent and child articles in archive page

I hadn’t tried this in practice, but theoretically should be easy.

  1. post_parent argument in query set to 0 should limit it to parent items, see Post & Page Parameters.

  2. Use pre_get_posts hook to correctly adjust main query, adding that argument.

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