Tag Info

New answers tagged

0

Make sure your webserver has the rewrite module turned on. eg. If using Wamp and Apache: Click Wamp tray icon, Apache > Apache Modules > rewrite module (make sure it is selected). http://www.felfelworld.com/2013/02/12/page-not-found-permalink-wordpress/


1

It is possible but wordpress doesn't have any helpful constructs to help with that. The best approach is to modify your 404.php. Most of the information that you need should be in the main WP_query object and you should be able to do something like if (is_singular('post_tyoe_a')) { .... } else { .... } this is extremely untested and you might need ...


0

Finally found the problem. This theme flush the rewrite rules on every request. I have removed the multiple calls to flush_rewrite_rules() and the problem is now gone.


1

You can include the search form in your 404.php file using the get_search_form() function. Using get_sidebar( '404' ); would look for a file called sidebar-404.php and fall back on sidebar.php if needed. get_sidebar()


0

404 errors are handled browser site and has nothing to do with Wordpress. When nothing is returned from the request, the browser triggers a 404 action and displays a 404 not found error page By default, if no custom 404 page exists on the site, the browser will display its own default 404 page. For further reading, check out: Creating an Error 404 page


1

You should set your publicly_queryable argument to true when registering your custom post type. TAKE NOTE: Add flush_rewrite_rules(), refresh the page once or twice and REMOVE IT IMMEDIATELY. You SHOULD NOT keep flush_rewrite_rules() unless under the provisions as in the codex. this is an expensive operation so it should only be used when absolutely ...


0

Flush the rewrite rule from dashboard -> Settings->Permalink page. Click on save button and then check your slide details page. It will work now. Otherwise you can write this code flush_rewrite_rules() in your create_slide_post_type() function. See the Codex


0

Why dont you use add_query_arg to get login url, $arr_params = array( 'foo' => 'bar', 'baz' => 'tiny' ); echo add_query_arg( $arr_params ,wp_login_url());



Top 50 recent answers are included