I can not able to change the url in single question page.I want it like “home url/forum/how-to-fetch-post-category in wordpress” to “home url/question/how-to-fetch-post-category in wordpress”.When I changed it from plugin settings page,it also changes the breadcrumb to question from forum.I have added this code to change the bresdcrumb to “Forum”:
$forum_url=home_url().’/?page_id=2126′;
if ( get_post_type() == ‘dwqa-question’ ) {
printf($link, $forum_url, ‘Forum’ );
} else if (!empty($portfolio_page_id)) {
echo ‘‘.get_the_title($portfolio_page_id).’‘;
} else {
printf($link, get_post_type_archive_link( $post_type -> name ), $label);
}
I want breadcrumb and url to to show forum instaed of question.