Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
129 views

Display a custom 404 page without a redirect

In a plugin I want to display a specific page without redirecting (and thus without changing the URL) like the plugin https://wordpress.org/plugins/404page/ does. I can capture 404s and redirect them, ...
0
votes
1answer
185 views

Taxonomy term page going to 404

Why are my hits for a taxonomy term page getting a 404 error? I have taxonomy "source', registered in code through a plugin... <?php /** * Plugin Name: Context Taxonomy for Sources * ...
1
vote
1answer
616 views

When a link doesn't exist, how to tell Wordpress what to do? (404 Error Page)

If you click any link that doesn't exist in my main site site, for example this link, i expect the WordPress to use the default index.php file that has this loop inside it: <div class="main col &...
4
votes
3answers
464 views

Different wordpress 404 template for different post type [duplicate]

I want to have different 404 template for each custom post type. eg. I have post type name event and the link will be domain.com/event/my-event-name but if it link to page that not have post domain....
1
vote
2answers
201 views

Have functions work outside the loop with 404 override

I need to override the 404 code for a very specific scenario and it's not yet fully working. I am linking day archives with rel=prev/next, and the chain is supposed to be intact start-to-end. For ...
0
votes
0answers
153 views

Is this the best way to complete disable category archive pages?

I wanted to disable category archive pages because content in my blog will be presented via a number of pages for which I have custom templates like this: add_action('page_template', '...
2
votes
0answers
797 views

Turning on the 404 page on localhost

I'm using my localhost (XAMPP client) to test my WordPress website and everything works fine, till it comes to verifying how does my 404.php template looks like. I can't preview any changes, because ...
2
votes
2answers
2k views

Filter to change the content of 404 page

I have created custom rewrite rules. These rules now go to 404 page as expected. I can use action hook template_redirect to change the template matching query_var. But I don't want to create separate ...
0
votes
1answer
2k views

/wp-admin/post.php shows 404 template on submit

When I publish or save a post, I see the 404 error page from my template. This happens with posts and WooCommerce products. I'm using the Twenty Twelve theme, and I have the following plugins ...
1
vote
1answer
120 views

custom post template file not shown, instead all the time 404.php

i'm completely confused, want to use my own template file for a custom post type and of course i read all about this here or in the Codex (http://codex.wordpress.org/Post_Types#...
1
vote
1answer
2k views

get_search_link() redirects to 404 template page

I built a custom theme, and in it, there is a 404.php page and a search.php page. Elsewhere in the template, I wanted to link to the search page directly. So, I used the get_search_template() ...
0
votes
1answer
566 views

wp e-commerce single-product template giving 404

this page was working initially, and then I made some changes which *didn’t* appear, and then it just stopped showing that page altogether. I have tried deleting my wpsc-single_product.php and ...
2
votes
1answer
176 views

Create second custom 404 page for selected post type

I created a new custom post type called event, which works fine. I also created a custom 404 page template, which is shown if a event/page/post is not found. But now the hard part, i want to create ...
0
votes
1answer
2k views

Prevent 404 of Author pages without posts

How do I prevent author archives without posts from 404ing?
1
vote
1answer
797 views

Why are 404s not triggering my 404.php template?

404s are not triggering my 404.php template. The header status code, checked in firebug, is a 404, but the page that gets displayed is like a loop with 0 items (as if this were simply an archive page ...
6
votes
3answers
1k views

Custom Post Types 404 Issue

I dont know why my custom post types render the Page not found. This is the code I am using to register custom posts. www.example.com/products/product1/ renders 404 where as www.example.com/?products=...