Parent pages not found with pretty permalinks

Looks like you’ve sorted the site out. I had the same problem recently working on a WordPress site someone else developed. The issue was they had registered custom post types and taxonomies with WordPress reserved slugs, like year and term for example. Also avoid registering custom post types and taxonomies that conflict with page or … Read more

Why my htacess rewrite return 404?

I am assuming that the stuff in “def/products” is not handled by WordPress. Try reversing the index.php and abc/products rules, like so: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^abc/products-(.+)$ def/products-$1 [R=301,L] RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wp/index.php [L] </IfModule> .htaccess is read and executed … Read more

paged query leads to 404? [duplicate]

A couple of points you should try out: Remove the ‘paged’ => $loop->query_vars[‘paged’] from your $pagination array. It’s not a parameter in the docs. Remove the ‘base’ => @add_query_arg(‘paged’,’%#%’) from your $pagination array. I believe WordPress catches the paged parameter using the default page parameter. Which is it’s default. Here are the docs for the … Read more

Page/2 posts don’t load and give 404

Never use query_posts() :). See this answer for more detailed explanation of why not, and the alternatives. In this instance, remove your query_posts() and instead in a plug-in, (or functions php). add_action(‘pre_get_posts’,’wpse57229_change_query_for_main_page’); function wpse57229_change_query_for_main_page( $query ){ if( $query->is_main_query() && is_front_page() ){ $query->set(‘post_type’,array(‘etude’,’new’)); } }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)