Title: nick222's Replies | WordPress.org

---

# nick222

  [  ](https://wordpress.org/support/users/nick222/)

 *   [Profile](https://wordpress.org/support/users/nick222/)
 *   [Topics Started](https://wordpress.org/support/users/nick222/topics/)
 *   [Replies Created](https://wordpress.org/support/users/nick222/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/nick222/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/nick222/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/nick222/engagements/)
 *   [Favorites](https://wordpress.org/support/users/nick222/favorites/)

 Search replies:

## Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [add_rewrite_rule does not work when .htaccess works](https://wordpress.org/support/topic/add_rewrite_rule-does-not-work-when-htaccess-works/)
 *  Thread Starter [nick222](https://wordpress.org/support/users/nick222/)
 * (@nick222)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/add_rewrite_rule-does-not-work-when-htaccess-works/#post-7146956)
 * Thank for idea, but I did not. My mistake was confusing apache mod_rewrite rules
   with WP rewrite rules which are based on php regular expressions and internal
   logic.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts in Page] Pagination does not work with custom post type](https://wordpress.org/support/topic/pagination-does-not-work-with-custom-post-type/)
 *  Thread Starter [nick222](https://wordpress.org/support/users/nick222/)
 * (@nick222)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/pagination-does-not-work-with-custom-post-type/#post-7135247)
 * Thanks Eric, I already figured that out. Now I try to make a plugin which could
   solve that ancient issue without additional options in .htaccess, which I find
   old and not flexible way. By the way, did you try to make WordPress core’s rewrite
   rules? There is build in php rewriter but I could not make it work when I used
   in functions.php, although I attached my rules to the ‘init’ function.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts in Page] Pagination does not work with custom post type](https://wordpress.org/support/topic/pagination-does-not-work-with-custom-post-type/)
 *  Thread Starter [nick222](https://wordpress.org/support/users/nick222/)
 * (@nick222)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/pagination-does-not-work-with-custom-post-type/#post-7135241)
 * Well since that moment I did couple of other things, at first I changed name 
   of post type to ‘pt-news’ with rewrite slug ‘news’ and deleted taxonomy ‘news’
   and ‘category’. It worked for a while but then ended up not working. I still 
   do not understand WP rewrite logic. So I had up to correct .htaccess finally.
   
   I added following `RewriteRule ^news/((?!\d{1,3}/?$).+)/?$ /?pt-news=$1 [L,QSA,
   NC]`
 * It excludes 1-3 numbers of pagination from links and make them work as planned,
   but if it sees slug of pt-news object it sends it to pt-news PT. It it not most
   elegant solution in the world but since WP is not flexible and its build in rewrite
   rules have no effect to its behavior (I even tried them from a codex) that was
   only thing which worked. Perhaps you have more flexible ideas, do you?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts in Page] Pagination does not work with custom post type](https://wordpress.org/support/topic/pagination-does-not-work-with-custom-post-type/)
 *  Thread Starter [nick222](https://wordpress.org/support/users/nick222/)
 * (@nick222)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/pagination-does-not-work-with-custom-post-type/#post-7135213)
 * In my case problem was not links. I have tried many different variations, nothing
   worked. So I finally corrected .htaccess. Now I want to understand why that thing
   could not work with WP mod rewrite
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to display custom posts in particular page with a slug similar to CP rewrite](https://wordpress.org/support/topic/how-to-display-custom-posts-in-particular-page-with-a-slug-similar-to-cp-rewrite/)
 *  Thread Starter [nick222](https://wordpress.org/support/users/nick222/)
 * (@nick222)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-display-custom-posts-in-particular-page-with-a-slug-similar-to-cp-rewrite/#post-7143597)
 * No one knows? I thought that problem was solved ages ago and I am the only person
   who still can’t make it work…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts in Page] Pagination does not work with custom post type](https://wordpress.org/support/topic/pagination-does-not-work-with-custom-post-type/)
 *  Thread Starter [nick222](https://wordpress.org/support/users/nick222/)
 * (@nick222)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/pagination-does-not-work-with-custom-post-type/#post-7135112)
 * Ok, I figured out that problem, that was slug conflict, although I still do not
   fully understand what exactly caused it. I had build in taxonomy with a slug 
   similar to page slug and my post type slug had the same name. I changed post 
   type slug and then removed taxonomy just in case, now pagination works fine.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts in Page] Pagination does not work with custom post type](https://wordpress.org/support/topic/pagination-does-not-work-with-custom-post-type/)
 *  Thread Starter [nick222](https://wordpress.org/support/users/nick222/)
 * (@nick222)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/pagination-does-not-work-with-custom-post-type/#post-7135097)
 * Heeeeyyy, is anyone alive? No ideas for such problem?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts in Page] Using posts-in-page make a private page accessible to everyone.](https://wordpress.org/support/topic/using-posts-in-page-make-a-private-page-accessible-to-everyone/)
 *  [nick222](https://wordpress.org/support/users/nick222/)
 * (@nick222)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/using-posts-in-page-make-a-private-page-accessible-to-everyone/#post-7128910)
 * Check post privileges manually before displaying, are you familiar with PHP and
   wordpress output methods?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Posts in Page] Displaying posts in a category with sub categories and their titles](https://wordpress.org/support/topic/displaying-posts-in-a-category-with-sub-categories-and-their-titles/)
 *  [nick222](https://wordpress.org/support/users/nick222/)
 * (@nick222)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/displaying-posts-in-a-category-with-sub-categories-and-their-titles/#post-6972214)
 * That cannot be achieved by standard functionality of plugin. You are better to
   look through plugings which generate menus. Something similar to woocommerce,
   as far as I understand your idea
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Editor Tools] How to disable autoresize?](https://wordpress.org/support/topic/how-to-disable-autoresize/)
 *  Thread Starter [nick222](https://wordpress.org/support/users/nick222/)
 * (@nick222)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-disable-autoresize/#post-7082298)
 * Although it still behaves a bit strange, it performs autoresize on page size 
   for a second but then disables it. Is there a way to disable that behavior? It
   seems there other functions besides ‘editor-expand’ and method execCommand( ‘
   wpAutoResize’ ); . Does anyone know where they are.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Editor Tools] How to disable autoresize?](https://wordpress.org/support/topic/how-to-disable-autoresize/)
 *  Thread Starter [nick222](https://wordpress.org/support/users/nick222/)
 * (@nick222)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/how-to-disable-autoresize/#post-7082295)
 * Ohh excuse me I found a solution in php, via filters, you can disable autoresize
   by following code.
    add_action( ‘admin_init’, ‘my_deregister_editor_expand’ );
   function my_deregister_editor_expand() { wp_deregister_script(‘editor-expand’);}
 * add_filter( ‘tiny_mce_before_init’, ‘my_unset_autoresize_on’ );
    function my_unset_autoresize_on(
   $init ) { unset( $init[‘wp_autoresize_on’] ); return $init; }

Viewing 11 replies - 1 through 11 (of 11 total)