Manually adding current_page_parent to wp_list_pages()

Question

I’m using wp_list_pages() like so:

<?php wp_list_pages('title_li=&include=1714'); ?>

But would like it so that the link has a current_page_parent class under the following conditions:

if (is_singular('work')) {

Is this achievable with this function?

0
pealo86 2 months 0 Answers 9 views 0

Leave an answer