404 not found error on pagination

Put your code in the template file category.php. Remove all the part before the loop: once in category template, you don’t need to get the category, get the paged, run again the query with query_posts… So your category.php should simply appear like so: if ( have_posts() ) : while ( have_posts() ) : the_post(); $image … Read more

post parameter ‘name’ 404 error

It sounds as though WorldPay is responsible for sending the overly generic name parameter so you aren’t in a position to control that. You will instead have to catch the request and force it to work. Something like: function redir_404_wpse_137703() { if (is_404() && isset($_GET[‘name’])) { locate_template(‘some-theme-template.php’,true); exit; } } add_action(‘template_redirect’,’redir_404_wpse_137703′); some-theme-template.php will need to … Read more

Conditional for 404 page not work

You should wrap your enqueue/register function in your conditional, not your add_action() You can try something like this using the is_404() conditional check function enqueue_404_script() { if(is_404()) { //do what you need to do } } add_action( ‘wp_enqueue_scripts’, ‘enqueue_404_script’ );