Title: WPDragon's Replies | WordPress.org

---

# WPDragon

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 47 total)

1 [2](https://wordpress.org/support/users/wpdragon/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/wpdragon/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/wpdragon/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/wpdragon/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Security – Password, Two Factor Authentication, and Brute Force Protection] Plugin issue switching HTTP to HTTPS?](https://wordpress.org/support/topic/plugin-issue-switching-http-to-https/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/plugin-issue-switching-http-to-https/#post-10633243)
 * So, I re-actived the plugin (site still didnt work) and said too many redirects…
   so, I went into the plugin settings and ‘disabled’ the ‘Configure to use SSL’—
   and now the site works again, and everything is showing the pages are secured
   with ‘HTTPS’ even the login page.
 * Any what could have been the cause?
    -  This reply was modified 7 years, 8 months ago by [WPDragon](https://wordpress.org/support/users/wpdragon/).
    -  This reply was modified 7 years, 8 months ago by [WPDragon](https://wordpress.org/support/users/wpdragon/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Firelight Lightbox] Received ‘Call to undefined’ error after updating to v1.7](https://wordpress.org/support/topic/received-call-to-undefined-error-after-updating-to-v1-7/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/received-call-to-undefined-error-after-updating-to-v1-7/#post-10181322)
 * Thank you for the quick reply…Ya, I had updated the Easy FancyBox plugin because
   it originally said it was “compatible” with my version of WordPress – which was
   4.4.7 — however, I just upgraded WP to the latest 4.9.5 version…and now it fixed
   the error.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] Category pagination not working in Custom Post Type…?](https://wordpress.org/support/topic/category-pagination-not-working-in-custom-post-type/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/category-pagination-not-working-in-custom-post-type/#post-8180162)
 * Oh okay, thanks!..I removed `'nav_menu_item'` from the array, and everything 
   still works!
 * Thanks again.
    -  This reply was modified 9 years, 8 months ago by [WPDragon](https://wordpress.org/support/users/wpdragon/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] Category pagination not working in Custom Post Type…?](https://wordpress.org/support/topic/category-pagination-not-working-in-custom-post-type/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/category-pagination-not-working-in-custom-post-type/#post-8171155)
 * Awesome!…it worked!…I added the code you suggested to the top of the filtering.
 *     ```
       function themeprefix_show_cpt_archives( $query ) {
        if ( is_admin() || ! $query->is_main_query() ) {
        return;    
       }
        if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {
        $query->set( 'post_type', array(
        'post', 'nav_menu_item', 'games'
        ));
        return $query;
        }
       }
       add_filter( 'pre_get_posts', 'themeprefix_show_cpt_archives' );
       ```
   
 * Thanks for your help & quick reply.
    -  This reply was modified 9 years, 8 months ago by [WPDragon](https://wordpress.org/support/users/wpdragon/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] Category pagination not working in Custom Post Type…?](https://wordpress.org/support/topic/category-pagination-not-working-in-custom-post-type/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/category-pagination-not-working-in-custom-post-type/#post-8170830)
 * Hi..just a quick update on this situation…The good news is, it seems everything
   is now working w/ pagination on the category page for my Custom Post Type using
   the code below in the functions.php:
 *     ```
       function themeprefix_show_cpt_archives( $query ) {
        if( is_category() || is_tag() && empty( $query->query_vars['suppress_filters'] ) ) {
        $query->set( 'post_type', array(
        'post', 'nav_menu_item', 'games'
        ));
        return $query;
        }
       }
       add_filter( 'pre_get_posts', 'themeprefix_show_cpt_archives' );
       ```
   
 * However, one minor thing I notice is that with the use of ‘**nav_menu_item**‘–
   it seems to automatically add its own recent post that goes to a “page not found”(
   for example: sitename.com/9469)..
 * When i remove ‘**nav_menu_item**‘ then that new created post disappears the list(
   which is good)…however, without ‘**nav_menu_item**‘ then the category page for
   the CPT does not display a main Navigation Menu at the top…so, it seems ‘**nav_menu_item**‘
   is necessary to show the main navigation…but, how can I use it without it creating
   its own recent post?
 * Hopefully that makes some sense….
 * thanks.
    -  This reply was modified 9 years, 8 months ago by [WPDragon](https://wordpress.org/support/users/wpdragon/).
    -  This reply was modified 9 years, 8 months ago by [WPDragon](https://wordpress.org/support/users/wpdragon/).
    -  This reply was modified 9 years, 8 months ago by [WPDragon](https://wordpress.org/support/users/wpdragon/).
    -  This reply was modified 9 years, 8 months ago by [WPDragon](https://wordpress.org/support/users/wpdragon/).
    -  This reply was modified 9 years, 8 months ago by [WPDragon](https://wordpress.org/support/users/wpdragon/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Pagination Not Working on Custom Category Template Page](https://wordpress.org/support/topic/pagination-not-working-on-custom-category-template-page/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/pagination-not-working-on-custom-category-template-page/#post-8153121)
 * > please post the code of those edits.
 * Below is the part of the code I used to show results for the ‘custom post type’:
 *     ```
       <!-- Page Content
           ================================================== -->
   
       <?php
            $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
            $postsperpage = get_option('posts_per_page');
   
                           query_posts( 
                               array(
                                   'ignore_sticky_posts' => 1, 
                                   'posts_per_page' => $postsperpage, 
                                   'paged' => $paged, 
                                   'cat' => $cur_cat_id,
                                   'orderby'=> 'title', 'order' => 'ASC',
                                   'category_name' => 'atari',
                                   'post_type' => 'games'
                              )
                           ); ?>
       ```
   
 * Below is the Pagination code that the original category.php was using:
 *     ```
       <!-- Pagination
                   ================================================== -->        
       <div class="pagination">
          <?php
              global $wp_query;
   
              $big = 999999999; // need an unlikely integer
   
              echo paginate_links( array(
               'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
               'format' => '?paged=%#%',
               'current' => max( 1, get_query_var('paged') ),
               'total' => $wp_query->max_num_pages
              ) );
          ?>   
          <div class="clear"></div>
       ```
   
    -  This reply was modified 9 years, 8 months ago by [WPDragon](https://wordpress.org/support/users/wpdragon/).
    -  This reply was modified 9 years, 8 months ago by [WPDragon](https://wordpress.org/support/users/wpdragon/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] Category pagination not working in Custom Post Type…?](https://wordpress.org/support/topic/category-pagination-not-working-in-custom-post-type/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/category-pagination-not-working-in-custom-post-type/#post-8150626)
 * Thanks for the reply…Actually, i’m using a custom category template for the CPT…
   For example, category-NES.php — (NES is the category name that I am using for
   the CPT called ‘Games’)
 * I do get proper results showing on the category page for the CPT — however, it
   doesn’t show pagination (similar to other category pages).
 * Am i suppose to use the archive instead?…The ‘category’ that im using is part
   of the custom post type I created..
 * Sorry, im a bit confused… :/
    -  This reply was modified 9 years, 8 months ago by [WPDragon](https://wordpress.org/support/users/wpdragon/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Pagination Not Working on Custom Category Template Page](https://wordpress.org/support/topic/pagination-not-working-on-custom-category-template-page/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/pagination-not-working-on-custom-category-template-page/#post-8147218)
 * ohh…well, I meant that I created a copy of the original and called it for example:
   category-films.php …However, I made edits to specify the post_type & category_name..
 * The results show the posts…its just the pagination at the bottom doesn’t appear
   for some reason.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] Changing Custom Post Type Structure…please help.](https://wordpress.org/support/topic/changing-custom-post-type-structureplease-help/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/changing-custom-post-type-structureplease-help/#post-7715799)
 * oh okay, great. Thanks for all your help & quick replies.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] Changing Custom Post Type Structure…please help.](https://wordpress.org/support/topic/changing-custom-post-type-structureplease-help/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/changing-custom-post-type-structureplease-help/#post-7715751)
 * oh okay, ya that make sense…so, as far as using the rewrite_slug, I assume then
   this option would be a solid long-term solution, right?
 * So, one quick last thing…after I do the rewrite_slug will I also need to do a‘
   redirect’ for my existing 75 posts that I published to avoid broken pages that
   were indexed by Google, correct?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] Changing Custom Post Type Structure…please help.](https://wordpress.org/support/topic/changing-custom-post-type-structureplease-help/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/changing-custom-post-type-structureplease-help/#post-7715749)
 * I tested the ‘Custom Rewrite_slug’ and it worked to replace ‘apps’ to ‘games’…
   which is a good thing.
 * Also, regarding customizing the permalinks for custom post types…I found a plugin
   that seems to work fairly well & has some positive reviews…
    - [https://wordpress.org/plugins/custom-post-type-permalinks/](https://wordpress.org/plugins/custom-post-type-permalinks/)
 * I just have one other question regarding the ‘Custom Rewrite_slug’ vs. changing
   the post type slug…I noticed a checkbox that says ‘Migrate posts to newly renamed
   post type?’..hmm?
 * Would you say the custom rewrite_slug a better solution in this case, rather 
   than actually changing and migrating it?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] Changing Custom Post Type Structure…please help.](https://wordpress.org/support/topic/changing-custom-post-type-structureplease-help/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/changing-custom-post-type-structureplease-help/#post-7715722)
 * okay cool..I will test that out.
 * I just have a couple of more questions:
 * What about for adding the relationship to the URL structure…for example: after‘
   games’ i want to label the specific gaming console for that particular content.
    - [http://www.sitename.com/games/atari/pac-man](http://www.sitename.com/games/atari/pac-man)
    - [http://www.sitename.com/games/nintendo/super-mario-bros](http://www.sitename.com/games/nintendo/super-mario-bros)
 *  - /games —> atari/
    - /games —> nintendo/
 * Sorry, im not too familiar with the exact terminology to describe it. 🙂
 * I appreciate your help with this.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Type UI] Changing Custom Post Type Structure…please help.](https://wordpress.org/support/topic/changing-custom-post-type-structureplease-help/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/changing-custom-post-type-structureplease-help/#post-7715686)
 * Thanks for the quick reply….so, just to make sure I understand the process correctly
   for the existing 75 posts:
 * Within the Custom Post Type UI plugin:
    1. Go to the ‘Edit Post Type’ tab (created for ‘apps’).
    2. Scroll down to the ‘Custom Rewrite_slug’ field.
    3. Then, type in ‘games’
    4. SAVE
 * Then, go to the wordpress settings – ‘Permalinks’ and just re-save the page?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Security – Password, Two Factor Authentication, and Brute Force Protection] iThemes Security Blocked My IP Address…Please Help..](https://wordpress.org/support/topic/ithemes-security-blocked-my-ip-addressplease-help/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/ithemes-security-blocked-my-ip-addressplease-help/#post-7469929)
 * [@dwinden](https://wordpress.org/support/users/dwinden/)
 * Oh, okay..Thanks again for your help!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Kadence Security – Password, Two Factor Authentication, and Brute Force Protection] iThemes Security Blocked My IP Address…Please Help..](https://wordpress.org/support/topic/ithemes-security-blocked-my-ip-addressplease-help/)
 *  Thread Starter [WPDragon](https://wordpress.org/support/users/wpdragon/)
 * (@wpdragon)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/ithemes-security-blocked-my-ip-addressplease-help/#post-7469811)
 * [@dwinden](https://wordpress.org/support/users/dwinden/)
 * Perfect!…I followed your detailed instructions and it looks like it worked out
   great!…Thank you for all your help & fast responses through this process – i 
   really appreciate it! 🙂
 * As for iTSec 5.5.0 — im actually still on wordpress 4.4.3…is this version of 
   iTSec considered compatible & stable enough on it?

Viewing 15 replies - 1 through 15 (of 47 total)

1 [2](https://wordpress.org/support/users/wpdragon/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/wpdragon/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/wpdragon/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/wpdragon/replies/page/2/?output_format=md)