Thank you for your question.
I have tested it on my test site using latest version of Jevelin theme and it’s working fine for me by redirecting to projects listings page.
Could you please share me the Projects page URL from your site and where you want to redirect it so that i can help you?
Not sure why it is redirecting to portfolio page from projects page on your site.
Would you mind if i log in to your site and do some troubleshooting? If this is ok then could you please share me your site log in details privately by adding them in the box having text “Click here to share private content. Only you and forum moderators will bee able see it.”?
Please see the information provided on the below pages.
I don’t need any log data. It was your idea to send me it. I need your site access to troubleshoot the issue as i could not reproduce the issue on my test site.
If you can’t share it then at least share me the screenshots of your portfolio settings so that i tried to reproduce the issue.
Also i can see you are using older version 2.4.1 of theme on your site so please update it to following latest version.
Please login to access this file
This can be child theme issue on your site so to confirm it just temporary use the Jevelin theme instead of child theme on your site. If everything works fine then it’s your child theme issue so just share me your child theme so that i can troubleshoot it.
Solution for this topic
ifstatement in this file:
could it be it?
Yes it seems the following code in this file is causing this issue so i have notified the theme developer about this so that it will be fixed.
wp_reset_postdata(); $portfolio1 = get_page_by_path( 'portfolio' ); $portfolio2 = get_page_by_path( 'portfolio-page' ); if( isset( $portfolio1->ID ) && $portfolio1->ID > 0 ) : wp_redirect( get_the_permalink( $portfolio1->ID ) ); elseif( isset( $portfolio2->ID ) && $portfolio2->ID > 0 ) : wp_redirect( get_the_permalink( $portfolio2->ID ) ); else : wp_redirect( get_home_url( '/' ) ); endif; exit;
In the meanwhile you can fix it by removing the above code from theme file and uncommenting other code in the same file or just use the attached child theme of Jevelin theme that contains some custom code.
Ok. Please make sure you clear your W3 Total Cache and autoptimize cache.
If it still doesn’t work for you then would you mind if i log in to your site and do some troubleshooting? If this is ok then could you please share me your site log in details privately by adding them in the box having text “Click here to share private content. Only you and forum moderators will bee able see it.”?