-
Hi there.
I’m not sure this issue is related with your theme, but if I switch to WP default theme there is not any Portfolio to check…
If I deactivate the plugins the error is still there.The issue is this:
When creating a new portfolio item or editing a draft of it the preview function works fine. If you change the portfolio item from published to draft and save it the preview function works again.But as long as the post status is “published” the portfolio item preview give me an error 404.
In the past, when I created my website, I changed the word “Portfolio” to “Outdoor”, as you can see in the code below:
add_action('init', 'boc_custom_types'); function boc_custom_types() { register_post_type( 'portfolio', array( 'labels' => array( 'name' => 'Portfolio', 'singular_name' => 'Portfolio' ), 'public' => true, 'has_archive' => true, 'rewrite' => array('slug' => 'outdoor'), 'supports' => array('title', 'editor', 'thumbnail'), 'can_export' => true, 'show_in_nav_menus' => true, ) );An example: I saw that the 404 page take me to this URL:
I realize that if I deleted all the letters after preview_id=xxx the preview works fine (https://www.guidedolomiti.com/outdoor/arrampicata-su-roccia/?preview_id=22521)
Have you any idea about how to solve this?
Thank you.
- Theme support is offered to verified customers only. To post a topic go to your Theme Category and add your question at the page bottom.
Theme Categories
Recent Topics
- Alea updates
- Why "Fortune" theme is no longer available?
- PHP 8.1 Error
- Issue with WPB editor icons
- Issue with Icons and Text Alignment for Arabic Content
- Installing and Activating Plugin Fortuna Portfolio CPT (1/8)
- Testimonials page is blank
- warning boc_framework line 905
- Transparent header issue without changes
- Slider Revolution error