404 errors problem with multilangual permalink pages
404 errors problem with multilangual permalink pages
404 errors problem with multilangual permalink pages
Default post category overruling %category% setting for posts URL
To update existing users, try to make a script file and put that code on it (you have to require necessary file wp-load.php if you put that file in the root of your wp instance) or by listning on a hook like init hook : $blogusers = get_users( ‘role=subscriber’ ); //get users by role // … Read more
You should always preface your CPT names with something to avoid stuff like this – common naming leads to conflicts. My recommendation, so that you avoid this happening again would be to go and re-work your CPT code in your plugin/theme and use myplug_newsletter as the name of your CPT. Obviously change the myplug_ to … Read more
Check for the existence of term slug
Previous answer here. You’ll want to use str_replace $permalink = get_the_permalink(); $permalink = str_replace(“dog-“, “”, $permalink);
How to prevent post_name from incrementing in wp_insert_post?
Here’s what I think is causing the problem: <?php query_posts($query_string . ‘&cat=-98, 101, 102’); ?> should be: <?php query_posts($query_string . ‘&cat=-98,-101,-102′); ?> The way it is now, it’s telling WordPress re-run the old query, but give me nothing from category 98, AND only pull posts from categories 101 and 102. I’m guessing you want it … Read more
OK, I almost got it now… I extended the Walker_Page Class: class Walker_Child_Classes extends Walker_page { function start_el(&$output, $page, $depth, $args, $current_page) { if ( $depth ) $indent = str_repeat(“\t”, $depth); else $indent=””; extract($args, EXTR_SKIP); $output .= $indent . ‘<li class=”‘ . apply_filters( ‘the_title’, $page->post_name, $page->ID ) . ‘”><a href=”‘ . get_page_link($page->ID) . ‘” title=”‘ … Read more
Take a look at this plugin -> http://wordpress.org/extend/plugins/redirection/