• Hello,

    I’m trying to preview my posts before I publish them, but when I try to do this, I get redirected to a 404 page.

    I’m working on version 4.1.1, using the Theme Nectar Salient theme.
    Here’s the site link.

    Any help would be appreciated, thanks! Mark

Viewing 6 replies - 1 through 6 (of 6 total)
  • Mark, does the preview work when you have a different theme activated? There may be some bugs in the theme you’re using that may not be jiving with 4.1.1, but I can’t tell for sure.

    Thread Starter markdaniel_

    (@markdaniel_)

    Hi Ben,

    I’m afraid not, I still get an error message.

    #lovemesomedaftpunk

    Have you tried deactivating your plugins to see if any are causing that?

    Gorgeous photos, BTW :)!

    Thread Starter markdaniel_

    (@markdaniel_)

    Yes, I’ve tried deactivating all of the different plugins, no luck. I’ve also tried reinstalling WordPress and changing and updating my permalinks.

    Thread Starter markdaniel_

    (@markdaniel_)

    Bueller? Bueller?

    can anyone help out with this?

    I have gone through all the threads in this forum to find the resolution for you. Most of people recommend to deactivate the plugins and restore the themes to make sure nothing is caused by the incompatibility of the third-party things. Also, there is a coding person recommend to add the following code int the theme. Hope this can help you.

    add_filter( 'pre_get_posts', 'my_get_posts' );
    function my_get_posts($query) {
    
        // Alters the main query to include different post-types by default everywhere
        // Useful when you want to mash up everything into the same feed
    	if ( !is_admin() && false == $query->query_vars['suppress_filters'] ) {
            if (is_category() OR is_home()) {
                // Add your different post-types below ie. reviews, previews etc.
                $query->set('post_type', array( 'post', 'review' ) );
            }
        }
    
    	return $query;
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘can't preview posts before publishing’ is closed to new replies.